detect if element is hidden by other element code example
Example 1: CHECK IF element is hidden jquery
// Checks CSS content for display:[none|block], ignores visibility:[true|false]
$(element).is(":visible");
// The same works with hidden
$(element).is(":hidden");
Example 2: js check if element hidden
if (elem.getAttribute("hidden") != null){
//code if elem is hidden
}