I need to know which div id is visible, I'm looking for isVisible () but it's not working, what should I do?
Problem:
I have several divs that take over the entire screen, but I only see the screen that is in question on the screen, but I need to know what id of this one. The remaining screens are property display: none;
I have the divs by default as follows:
<div class="upage hidden background_PRINCIPAL" id="ID_ESPECIFICO_DA_DIV">
and what I'm doing is the following:
if($('.upage').is(':visible') == 'home'){
}else{}