2

I am generating a datable with standard options, but I want to move the pagination control to another <div> outside sDom like

<div class="pagination">pagination</div>

So far I found how to copy it looks like:

"fnInitComplete": function(oSettings){
    var $pagination = $('.dataTables_paginate').clone(true, true);
    $('.navbar-inner').append($pagination);
}

Is there a way to do it?

1 Answer 1

7

Sure - here's your solution

$(document).ready(function() {
  $("#example").dataTable();
 //$("#NewPaginationContainer").append($(".dataTables_paginate").clone(true));
  $("#NewPaginationContainer").append($(".dataTables_paginate"));
} );
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.