Solved

jquery visible rows in a table selection

Posted on 2014-04-02
2
862 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Browser Chrome downloads colored link 5 40
JavaScript behaviour different on local machine and network share 11 45
Checking data with javascript 3 19
Jquery 2 9
This article discusses four methods for overlaying images in a container on a web page
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to count occurrences of each item in an array.

786 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