Html
<div id='dialog-confirm'>Do you want to create an employee</div>
<input type='buton' value='create' onclick='CreateEmployee()'/>
в вашем javascript
function CreateEmployee(){
$('#dialog-confirm').dialog('open');
}
$(document).ready(function() {
$( "#dialog-confirm" ).dialog({
resizable: false,
height:140,
modal: true,
buttons: {
"Yes": function() {
$( this ).dialog( "close" );
//call your create employee action here
},
Cancel: function() {
$( this ).dialog( "close" );
}
}
});
});