jQuery pagination plugin doesn't work -
i have long list of items on page
<div class="content"> <div class="row-fluid"> <div class="span12"> <h4 class="content-title">clients</h4> <div class="clients_wrapper"> <div class="img-indent3"> <img src="../images/us department of defense.png" alt=""> </div> <div class="extra-wrap"> <span class="text-3">us department of defense</span> <br> text </div> </div> <div class="clients_wrapper"> <div class="img-indent3"> <img src="../images/intel corporation.png" alt=""> </div> <div class="extra-wrap"> <span class="text-3">intelcorporation</span> <br> text. </div> </div> <div class="clients_wrapper"> <div class="img-indent3"> <img src="../images/hsbc holdings.png" alt=""> </div> <div class="extra-wrap"> <span class="text-3">hsbc holdings plc</span> <br> text. </div> </div> and i'd use jquery pagination plugin select list on pages link
i added in project script ans css files , added code on page
<script type="text/javascript" src="/scripts/jquery.simplepagination.js"></script> <script type="text/javascript"> $(function () { $(".clients_wrapper").pagination({ items: 30, itemsonpage: 8, cssstyle: 'light-theme' }); }); </script> but result got this

what's wrong in code?
how fix it?
i never heard of plugin before, seems me plugin creates specified number of page links you, not automatically show and/or hide content of site. first time use plugin? me, looks selector .clients_wrapper found x times, x pagination bars generated plugin. think plugin works, not expected do.
Comments
Post a Comment