Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DataTable - Disabled pagination

I need to do the following:

$("#example").on( 'page.dt', function () 
{
    if ($("#txtField6").length){    
        alert("You must finish operation new/edit. The pagination is not posible");
        //when i press the buttons navigation, if this condition is met, I must stay on the same page, what can i do it?
    }
});
like image 337
Eladerezador Avatar asked Feb 15 '26 07:02

Eladerezador


1 Answers

The solution:

tbLoc.page(page.info());
like image 155
Eladerezador Avatar answered Feb 16 '26 20:02

Eladerezador



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!