Solved

jquery visible rows in a table selection

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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…

706 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

16 Experts available now in Live!

Get 1:1 Help Now