removing class from previous page when you are on the next page

removing class from previous page when you are on the next page

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 athttp://webcartz.stagetesting.com/playlist

Thanks