Hi, try like this
$(document).ready(function () {
$('#lnkShow').click(function () {
$('#dialog').dialog('open');
return false;
});
});
and the html
<a id="lnkShow">Open Me!</a>
<div id="dialog">the contents goes here !</div>
Remember that you need to add jQuery reference on your page