How to check whether the Input Text Field is visible or hidden in Javascript ?

Posted by misha-moroshko on Stack Overflow See other posts from Stack Overflow or by misha-moroshko
Published on 2010-04-13T15:06:11Z Indexed on 2010/04/13 15:13 UTC
Read the original article Hit count: 126

Filed under:

Hi,

I have an input text field which has

style: "visibility: visible"

or

style: "visibility: hidden"

What is the easiest way to find out if it is visible or not ?

Suppose the input text field is E. What should be the condition here:

if <something with E> {
    alert("The text filed is visible !!");
}

?

Thanks in advance !

© Stack Overflow or respective owner

Related posts about JavaScript