Home > jQuery > How Do I Check if an Element is Hidden using jQuery?
Bookmark and Share

How Do I Check if an Element is Hidden using jQuery?

Posted on March 21, 2018 | Filed in jQuery

There are a few ways to check whether an element is hidden using jQuery. This checks the CSS

if(jQuery(element).css('display')=='none'){
// If True
}

If you are working with drop downs and you want to see if it is collapsed:

if(jQuery(element).is(':hidden')){
// If True
}

Leave a Reply

Contact Us

Big Apple Design Group
134 West 29th Street
Third Floor
New York, NY 10001

[email protected]

Search Blog