0
I need to guess in my jQuery Datatable a function so that the user says he wants to go to page 9 and he is redirected. I used the following function:
$('#btnIrAtePag').on('click', function () {
var table = $('#grid').DataTable();
table.page($('#txtIrAtePag').val() - 1).draw(false);
});
But I wanted to add the button and input next to the pagination and I’m not getting it. Is there any other way to do this function?
Face the question is a little confused. Let’s see if you understand. You want to add an input where the user will enter the page number they want to go, right?
– Cristiano Gilberto João
Opa, that’s right, @Cristianogilbertojoão
– Weliton Junior
And you want to add the input as if it were a Datatable resource?
– Cristiano Gilberto João
If possible, @Cristianogilbertojoão
– Weliton Junior