Solved

javascript getelementbyid visible

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

I have the following code:

var tbl = document.getElementById("table1")

this select the entire elements of the table, but when i apply a filter, then i need to declare the var tbl to select only the visible rows of the table, how i add a "visible" specification in that code?
0
Comment
Question by:joyacv2
2 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 39973983
the right question is : It is possible to specify or select the row I need to be visibleor not?

The answer is : No
0
 
LVL 9

Expert Comment

by:Sar1973
ID: 39974380
You cannot with that code; instead, you could develop an iteration that inspects each tag of your HTML and checks if its visible, hidden or not specified.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

When you need to keep track of a simple list of numbers or strings, the Array object is your most direct tool.  As we saw in my earlier EE Article (http://www.experts-exchange.com/A_3488.html), typical array handling might look like this: (CODE) B…
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

809 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