$(function() { $( "#dialog" ).dialog({ autoOpen: false, modal:true, resizable: false, width: 600, height:"auto", show: { effect: "blind", duration: 1000 }, hide: { effect: "explode", duration: 1000 } }); $( "#opener" ).click(function() { $( "#dialog" ).dialog( "open" ); }); });