Solved

jquery visible rows in a table selection

Posted on 2014-04-02
2
853 Views
Last Modified: 2014-04-03
Hi,

I have a table with an id tblHitParade. This tblHitParade with three columns have filter capabilities, then after the table is filtered i need to run a loop only on the visible (filtered) rows, and display an alert box for each of the filtered result of the first column, any idea?
0
Comment
Question by:joyacv2
2 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 39973991
try this :

$("#tblHitParade tr:visible").each(function() {
     var column1 = $("td:eq(0)", this);
     alert( column1.text() );
});

Open in new window


If that don't work please post a link to see your page or the HTML of the table
0
 
LVL 1

Author Closing Comment

by:joyacv2
ID: 39974819
works perfect!!!!!!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now