mercredi 11 mars 2015

warn the user for unsaved changes before closing the dialog box

I have a dialog box with a form on clicking outside the dialog i am closing the dialog box using backdrop property. Now I want to show a alert message for the user if the form fileds are changed. How can i show a warn message. I googled a lot but couldn't get the solution. Any Suggestions



$("#dialog").modal({
backdrop: true,
keyboard: false,
show: true,
});


So, before closing the dialog i want to warn the user if there are any changes made in form.


Aucun commentaire:

Enregistrer un commentaire