jquery check show hide state change code example
Example: jquery is element hidden
// Checks css for display:[none|block], ignores visibility:[true|false]
$(element).is(":hidden");
// Checks css for display:[none|block], ignores visibility:[true|false]
$(element).is(":hidden");