pagination - Paginate using javascript -


following static html of table. dyanamically insert table based on no of data get(data.length) value ajax call. need insert pagination in 5 tables been allowed , if exceeds 6th, dyanamically pagination should happen values in footer should increase one( << < 1 2 > >> ).

<table id="mytable">   <tbody id="tbody">    <td>    <tr>sample values</tr>    <tr>sample values</tr>    <td>   </tbody> </table>  for(int i=0;i>data.length;i++) {      var row = $("#mytable #tbody").append("<td><tr></tr></td>"); } 

i made use of following script problem here is, pagination didnt happen. not sure of problem exists since beginner js.

     <script src=../../simplepagination.js>     // init bootpag     $('#page-selection').bootpag({         total: 10     }).on("page", function(event, num){          $("#content").html("insert content");      });           </script> 


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -