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

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -