コンテンツ(ある種のhtmlなど)だけを表示するモーダルダイアログを作成しようとしています。
<script>
$.fx.speeds._default = 1000;
$(function() {
$( "#dialog" ).dialog({
autoOpen: false,
closeOnEscape: true,
modal: true,
position: 'center',
width: 800,
height: 600,
show: "blind",
hide: "explode"
});
$( "#opener" ).click(function() {
$( "#dialog" ).dialog( "open" );
return false;
});
});
</script>
ページを表示すると、ダイアログはインラインで非表示になりません。これが私のhtmlです:
<div id="dialog">This is my dialog that should be hidden until called</div>
<button id="opener">I Open the Dialog</button>
私は何が間違っているのですか?