Click here to Skip to main content
14,869,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am having 2 label and i want to show 3 items in one page and other in another page.how to do that pagination and i am using this jsfiddle here http://jsfiddle.net/2b6LL/1/[^] i want to know how to integrate it.
HTML
<<pre lang="xml">div id=1>
</div>
<ul class="pagination pagination-lg">
  <li><a href="#">&laquo;</a></li>
  <li><a href="#">1</a></li>
  <li><a href="#">2</a></li>
  <li><a href="#">3</a></li>
  <li><a href="#">4</a></li>
  <li><a href="#">5</a></li>
  <li><a href="#">&raquo;</a></li>
</ul


JavaScript
<pre lang="xml"><pre lang="Javascript">for (var i=0;i<=10;i++){
var a1=$("<label></label>")
                                                 .prop("id",i)
                                                 .text("nand"+i)
                                                 .css({
                                                  'margin-left': '5px'
                                                      });
   var b1=$("<label></label>")
                                                 .prop("id",i)
                                                 .text("nanh"+i)
                                                 .css({
                                                  'margin-left': '5px'
                                                      });
     var c1=$("<label></label>")
                                                 .prop("id",i)
                                                 .text("nanf"+i)
                                                 .css({
                                                  'margin-left': '5px'
                                                      });
$("#1").append(a1).append("<br>").append(b1).append("<br>").append(c1).append("<br>");
}
Posted
Updated 26-Jun-14 20:15pm
v3
Comments
   
Not clear. But you can get many plugins for pagination, if you search in Google.
Nandhini Devi 27-Jun-14 3:30am
   
http://jsfiddle.net/2b6LL/5/ my jsfiddle can you help me

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