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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:57:17+00:00 2026-06-09T12:57:17+00:00

This seems to be a little hard to explain, but I will try my

  • 0

This seems to be a little hard to explain, but I will try my level best.

I have used jquery tablesorter for paging. working fine.
Actually I have a list of songs and by default first song plays at page load.

The TR of the song become active by custom jquery function which turns the class (classname = current_playing) so as to show that this song is playing. working fine.

when I click on other song (other TR) then the previous song is made inactive and the TR’s Class(current_playing) is removed which is obvious.

Code

 $('.tablesorter tr').removeClass('current_playing');

Problem

When I go to second page using tablesorter and then click on other tr of second page then it does not remove previous tr class which I selected in the previous page.

I have some idea that this is causing because may be above code is not finding the TR in the page.

Please help how can I remove previous class. I hope I tried my best to explain but still you can see it at http://webcartz.stagetesting.com/playlist

Thanks

  • 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-09T12:57:19+00:00Added an answer on June 9, 2026 at 12:57 pm

    After googling and properly studying the doc of tablesorter, I was successful in finding the solution. In tablesorter we have $(“.tablesorter”)[0].config.rowsCopy which gives all the table rows and using this you can easily use your custom code .

      $($(".tablesorter")[0].config.rowsCopy).each(function() {
         // for removing tr class 
         $(this).removeClass('current_playing');
         // for changing class another div 
         $(this).find('div.black_speaker').removeClass('black_speaker');
      });
    

    Hope this help somebody who is having the same problem.

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

Sidebar

Related Questions

found this little code snippet that seems to do what i want, but im
I only read a little bit about this topic, but it seems that the
This question may seem a little bit stackoverflow-implementation specific, but I have seen a
This seems a 'stupid' question, but let me explain. I'm working for a company
Sorry if this seems like a stupid question but im actually having a hard
So, this one seems to be a little tricky. There's an image map with
Seems I've outdone myself. All the while I was creating this pretty little 'latest
I know this question might be little silly but I can't seem to find
I wrote this little code std::map<int,template<class T>> map_; map_.insert(make_pair<int,message>(myMsg.id,myMsg)); but the compiler doesn't seem
This seems like a repeated question but i'm not able to get my answer.

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.