How to check for any html element is hidden or visible using jquery?

Get support on JavaScript,jQuery, AJAX and other related technology.
Post Reply
admin
Site Admin
Posts: 44

How to check for any html element is hidden or visible using jquery?

Post by admin » Wed Oct 16, 2019 10:41 pm

Code: Select all

// Checks css for display:[none|block], ignores visibility:[true|false]
$(element).is(":visible"); 

// The same works with hidden
$(element).is(":hidden"); 

Post Reply