jquery-ui-dialog-suddenly-not-working-anymore
https://forum.jquery.com/topic/jquery-ui-dialog-suddenly-not-working-anymore
HTML
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css">
<link rel="stylesheet" href="http://static.jquery.com/ui/css/demo-docs-theme/ui.theme.css">
JavaScript
var test_dlg=$('<div>Dialog content</div>').dialog( { autoOpen:false } );
$('document').ready(function(){
test_dlg.dialog('open');
});