Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3616958
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:33:47+00:00 2026-05-18T22:33:47+00:00

I’ve added a jQuery plugin to our websites that currently works as desired, however

  • 0

I’ve added a jQuery plugin to our websites that currently works as desired, however it breaks when there’s two elements on the page that needs to be paged. I’ve asked the developer of the plugin about this, and he confirms it’s been designed with only one element on the page.

So, I’ve went out to look for another pager plugin, but all of the ones I’ve found can’t handle my specific use case.

My use case is as follows. I have a set of lists that act as columns. On page one, I’d like to see the first two list elements of both columns.

<div>
  <ul class="column-1">
    <li>
    <li>
    <li>
    <li>
  </ul>
  <ul class="column-2">
    <li>
    <li>
    <li>
    <li>
  </ul>
</div>

In the current pager, I’ve implemented this by calculating the amount of columns and dividing the regular start / end by them, so instead of showing records 1 – 4 it shows 1 – 2. Using the :nth-child selector, jquery then shows the first and second li element of either ul. (if you’re looking for code: http://pastebin.com/F7BqQaxh)

This is only possible because the particular jquery plugin I’ve used uses a customizable callback function to execute when the user clicks on a page number. However, this does not work when there’s more than one element on the page, as the callback function doesn’t have awareness of which of the two pager elements is being clicked on – or I’m just missing something fundamental.

So. I guess I’m looking for a simple pager plugin that works with multiple elements on the same page (and should work with an .each() call, so I can apply the pager to all elements with a ‘paged’ class), /and/ that has an overridable method to implement my custom behavior.

I’m not nearly proficient (or patient) enough in Javascript to go and develop it on my own, even though it should be easy enough. I struggle for a whole day on a handful of lines of code, and JS in general just frustrates me to no end. But someone’s gotta do it, :(.## Heading ##

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T22:33:47+00:00Added an answer on May 18, 2026 at 10:33 pm

    The pajinate plugin will do what you need it to. You can define the div that this should sit and call it without a problem:

    <script type="text/javascript">
    $(function(){
      $(".pajinate").pajinate({
        item_container_id:'.pajinate-content', 
        nav_panel_id:'.navigation',
        items_per_page:3,
      });
    });
    </script>
    <div>
      <div id="pajinate1" class="pajinate">
        <div class="navigation"></div>
        <ul class="column-1 pajinate-content">
          <li>a</li>
          <li>b</li>
          <li>c</li>
          <li>d</li>
          <li>e</li>
          <li>f</li>
          <li>g</li>
          <li>h</li>
          <li>i</li>
          <li>j</li>
          <li>k</li>
          <li>l</li>
        </ul>
      </div>
      <div id="pajinate2" class="pajinate">
        <div class="navigation"></div>
        <ul class="column-2 pajinate-content">
          <li>a</li>
          <li>b</li>
          <li>c</li>
          <li>d</li>
          <li>e</li>
          <li>f</li>
          <li>g</li>
          <li>h</li>
          <li>i</li>
          <li>j</li>
          <li>k</li>
          <li>l</li>
        </ul>
      </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
I've got a string that has curly quotes in it. I'd like to replace
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.