if div is visible hide if not showing in jquery code example
Example 1: jquery see if element is visible
.is(':visible')
//Selects all elements that are visible.
if($('#yourDiv').is(':visible')){
//do stuff in here
}
//or
$('#yourDiv:visible').callYourFunction();
Example 2: jquery if is visible
$('.eipC:visible').length
//or
$('.eipC').is(':visible').length