How to save the current page from a dataTable to a variable?

0

I would like to save in the page variable the current page value of a table using the DataTable plugin, because of their documentation I believe it is more or less like this, but it is not working.

var table = $('#myTable').DataTable();
var pagina = table.page();
    
asked by anonymous 26.07.2017 / 21:30

0 answers