Your Name
<button id="b1">Open Dialog Box</button>
<div id="my_dialog" title="plus2net dialog">
<p>Your Name <form id=f1><input type=text id=t1 name=t1><input type=text id=t2 name=t2></form></p>
</div>
<script>
$(document).ready(function() {
var pos = { my: "center center", at: "center top", of: window };
$(function() {
$( "#my_dialog" ).dialog({
autoOpen: false,
position:pos,
show: {
effect: "fade",
duration: 2000
},
hide: {
effect:"size",
duration:200
},
buttons: {
"Close ": function() {
$( this ).dialog( "close" );
}
}
});
});
$("#b1").click(function(){
$( "#my_dialog" ).dialog( "open" );
})
})
</script>