I have pagination on my table. I want go back back to the first page whenever a function is called. How can I do that?
from the docs: http://datatables.net/ref#fnPageChange
$(document).ready(function() {
var oTable = $('#example').dataTable();
oTable.fnPageChange( 'first' );
} );
var oTable = $('#example').dataTable();
oTable.fnPageChange( 'first' );
OR
oTable.fnPageChange( 0 );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With