<div id="dialog" title="jQuery Dialog"><span>Delete all Items !!</span></div>
$(function () { $("#dialog").dialog({ resizable: false, height: 160, modal: true, buttons: { "Delete items": function () { $(this).dialog("close"); }, Cancel: function () { $(this).dialog("close"); } } }); });