dialog test
HTML
<link rel="stylesheet" href="http://code.jquery.com/ui/1.8.18/themes/base/jquery-ui.css">
<button>dialog</button>
<div id="dialog" title="title">
<p>test</p>
</div>
JavaScript
$(function(){
$("#dialog").dialog({
buttons: {
Cancel: function(){$(this).dialog("close");}
}
})
})