rendered paste body<script type="text/javascript">
jQuery(document).ready( function(){
// $myID = 'diving';
var $dialog = $('<div id="diving"></div>')
// var $dialog = $('<div id="diving"></div>')
.dialog({
height: 350,
modal: true,
position: 'center',
autoOpen:false,
overlay: { opacity: 0.5, background: 'black'}
});
}
);
</script>
<button id="opener" onClick="$('#diving').attr('id', 'testing' ); $('#testing').dialog('option', 'title', 'Dialog Title' ); $('#testing').html('ok').dialog('open');">Open the dialog</button>