Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
hi 

I want limit this simple jquery pagination 

now is --->     1 2 3 4 5 6 7 8 9 10

i whant convert ---->     <prev  1 2 3... next>

after click on 3 --->       <prev  2 3 4... next>

i am use imtech_pager  for pagination

<pre lang="Javascript">

var pager = new Imtech.Pager();
$(document).ready(function() {
    pager.paragraphsPerPage =12; // set amount elements per page
    pager.pagingContainer = $('#content'); // set of main container
    pager.paragraphs = $('div.z', pager.pagingContainer); // set of required containers
    pager.showPage(1);
});

</pre>


html code -->

<pre lang="HTML">

  <div class="example">
     <div id="content">
<div class="z" >
one
<div>
<div class="z" >
tow
<div>
<div class="z" >
three
<div>
<div class="z" >
four
<div>
<div class="z" >
five
<div>
.
.
.
</div>
</div>

//number of pagination
<div id="pagingControls"></div>
</pre>


please help me for limited this pagination

thanks


What I have tried:

please help me for solve this problem
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900