Clone only one Paging Button
Clone only one Paging Button
![Beanek](https://secure.gravatar.com/avatar/2a569c0d70ceef593ae044436100f5fd/?default=https%3A%2F%2Fvanillicon.com%2F2a569c0d70ceef593ae044436100f5fd_200.png&rating=g&size=120)
Hello,
is it possible to just clone one paging button outside the maintable ? I know how to di it for the whole pagination
$(document).ready(function() {
$("#example").dataTable();
$("#mynewdiv").append($(".dataTables_paginate"));
} );
but is there a way to do it only for the last button ? Something like that.
$("#mynewdiv").append($(".dataTables_paginate.last"));
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
There isn't a way of doing exactly that, but you can achieve the same effect using the
page()
method. e.g.:in a click event handler for your button.
Allan
Thank you Allan,![:) :)](https://datatables.net/forums/resources/emoji/smile.png)
It's exactly what i was searching for.