In bootstrap datatable i have more then pages,in here i need page click function in jquery -


in datatable have inline edit option columns ,if edit didn't save that,that time click on next page, show alertify function (before leave page please save else changes loss)but alertify comes after move next page,but need before enter next page,once user click save or don't save move next page.......my jquery code here

    $('#mycontacts').on('page.dt', function () {         if ($("#hdnsavechanges").val() == "1") {             alertify.set({                 labels: {                     cancel: "don't save",                     ok: "save "                 }             });             alertify.confirm("do want move page.       changes have not been saved", function (e) {                 if (e) {                     // $("#hdnsavechanges").val("0");                 } else {                 }             });         }     }); 


Comments

Popular posts from this blog

PHP while loop dynamic rowspan -

android - How to read a column value in parse.com without accessing an object or a pointer -

timer - Java TimerTask cancel -