Online Hibernate Training just in Rs. 1000

One week online training in Hibernate ORM framework. Learn Hibernate Framework and enhance your skills. Best Online Hibernate training at 90% discount. Join Now!! Offer is valid Only for limited Period!!! Online Training Big Data and Hadoop Training Java Training  
 

How to make elements invisible ?

Ads

 
 

Share on Google+Share on Google+

samar
How to make elements invisible ?
1 Answer(s)      6 years and 9 months ago
Posted in : JavaScript Questions

How to make elements invisible ?

Ads
View Answers

November 9, 2010 at 1:06 PM


Change the "visibility" attribute of the style object associated with your element. Remember that a hidden element still takes up space, use "display" to make the space disappear as well.

if ( x == y) {
myElement.style.visibility = 'visible';
} else {
myElement.style.visibility = 'hidden';
}

Ads