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 !
Like this:
If you also need code to get the element, here’s an example by the id attribute:
The above code would find an element like this (note IDs should be unique):