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: 3.230.76.196
To prevent spam please submit by clicking the kitten: