$(window).bind("beforeunload", function () { if (DATA_CHANGED) { DATA_CHANGED = false; return "All unsaved data will be lost. Please save your data before you navigate to other page"; } }); $(document).change("input[type='text'],input[type='radio'],input[type='checkbox'],select,textarea", function () { DATA_CHANGED = true; }); $(document).on("focusin", "#AgreementDateFrom,#AgreementDateTo", function () { DATA_CHANGED = true; });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)