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 8559033
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:56:45+00:00 2026-06-11T15:56:45+00:00

I have been working on the following code for the last few days and

  • 0

I have been working on the following code for the last few days and can’t find a solution that seems to work as I want it. What I would need is a sort of a pagination within a part of a table. following actions/events are required:

  • When clicking previous or next the name of the race in the top should change accordingly with the higlighted race. SO R2 = Race 2 – Virgina etc..

  • Here comes the tricky part, once you have reached the last visible (highligted) column and click next a new column should appear, so the range will be R2-R7 and so on, the total number is always different. The width of all the Rn should stay the same.

My question is, is this is even possible in jQuery and how? I’ve studied some pagination plug-ins but none seem to be able to do this.

The code is live here: http://jsfiddle.net/yunowork/5r9ZW/

  • 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-06-11T15:56:46+00:00Added an answer on June 11, 2026 at 3:56 pm

    Is not perfect but could be a starting point:

    I’ve only test it in the ‘next’.

    I’ve addedd in the next function:

    var $currCol = $('.highlighted'); //to get the current column
    
    $('.race strong').text($('.highlighted').next('td:first').text()); //To set the title: R1 - R2 - R3 ...
    

    and

    else{
            $currCol.each(function(i,v){
                var k = i + 1;   
                var id = parseInt(v.id.replace('r',''));                
                id++;
                if(k == 1) $(this).clone().text('R'+id).attr('id', 'r'+id).appendTo($('table tr').eq(k));
                else $(this).clone().attr('id', 'r'+id).appendTo($('table tr').eq(k));
            });
        } // to add a new column
    

    Hope this help

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on this code but I can't find out what is
I have been trying to get the following code working. It's a progress bar
I have been coding up some map functionality. In the last few days, I
I have the following code that is working to assign a locale based first
I have been working with the slider and am using the following code: $(function(){
I have been working now for few days on a small C program which
I have been working on the following problem from this book . A certain
I have been working with Zend for a few months now and am at
I have been working with the example code from the ExecutorCompletionService and put together
First let me say that I have been working on this issue for about

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.