JQuery test if an element is hidden

Here is a clever way to test if an element is hidden with JQuery:

$("#element").is(':hidden');

Or the opposite, test if something is visible

$("#element").is(':visible');


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 44.222.138.70
To prevent spam please submit by clicking the kitten: