Try this example...
In your view page where the delete button is present, type this code..
<div id="dialog-confirm" title="Remove this?">
<p align="justify">
<span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>
This will be permanently deleted in our system and cannot be recovered. Do you want to continue?
</p>
</div>
Trigger example of delete button (put this in your js file):
$("#deletebutton").click(function() {
$('#dialog-confirm').dialog('open');
}
// jquery-ui confirm dialog box
$("#dialog-confirm").dialog({
autoOpen: false,
resizable: false,
modal: true,
buttons: {
'Remove': function() { // remove what you want to remove
// do something here
},
Cancel: function() {
$(this).dialog('close');
}
}
});
Note: Do not forget to include jquery script and jquery-ui plugin script in your header file. This will not work without this files.
You can download the jquery-ui plugin here.
If you have further questions, just post comments. :D