Вы можете добавить div # диалоговое подтверждение динамически
$(document.documentElement).append('<div id="dialog-confirm" title="Empty the '+
'recycle bin?"<p><span class="ui-icon ui-icon-alert" style="float:left; ' +
'margin:0 7px 20px 0;"></span>These items will be permanently deleted and' +
' cannot be recovered. Are you sure?</p></div>');
$( "#dialog-confirm" ).dialog();