My dialog box is defined under the div
#dialogbox
When the dialog box opens i want to trigger an event such that it alerts open. The code im us
It will display alert after clicking on the OK button.
$( "#WaitingDialog").html("Message you want to display").dialog({
modal: true,
buttons: {
Ok: function() {
alert("hello");
}
}});
It will display alert after opening the modal
$( "#WaitingDialog").html("Message you want to display").dialog({
modal: true,
buttons: {
open: function( event, ui ) {
alert('hello');
}
}});