how check html attribute display block or none using jquery code example
Example: jquery how to know if element is visible
// Checks CSS content for display:[none|block], ignores visibility:[true|false]
$(element).is(":visible");
// The same works with hidden
$(element).is(":hidden");