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');
Leave A Reply
All content licensed under the Creative Commons License