Closed ezekel closed 9 years ago
why I get error if my count result is zero ?
"Error: Start page option is incorrect"
$.ajax({ type:'post, url:'fetchEmployeeProject', data:{id:4}, success:function(data){ $('#mypagination').twbsPagination({ totalPages: data, //error if data is zero. visiblePages: 7, onPageClick: function (event, page) { $('#divcontainer').load('load_data.php',{id:4}); } }); } });
Hi ezekel,
look at lines from 22 to 35. Here is checked init options. Plugin not supported zero totalPages and negative startPage.
totalPages
startPage
If you need to hide pagination snippet when totalPages <= 0, do it from outside the plugin.
totalPages <= 0
why I get error if my count result is zero ?
"Error: Start page option is incorrect"