The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Paginating using jQuery

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #208400

    Suppose i have a html code like this.

    <div class="question">
    .......................up to 100
    <button class="next">Next</button>

    What i want to do ?
    When someone click next button i want to add new button previous , hide 1,2,3,4,5 show 6,7,8,9,10 .And again if someone click button it hide 6,7,8,9,10 and show 11,12,13,14,15 and i want to hide next button when 95,96,97,98,99,100 is shown .

    I could do up to here

    var question=$(“.question div”);


    $(“question div:lt(11)”).show();
    $(“question div:lt(6)”).hide();
    return false;


    Is it possible using jquery ? thanks :)

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.