0
Q:

jquery if is visible

.is(':visible')
//Selects all elements that are visible.

if($('#Div').is(':visible')){
	// add whatever code you want to run here.
}

$('#yourDiv:visible').callYourFunction();
8
.is(':visible')
//Selects all elements that are visible.

if($('#yourDiv').is(':visible')){
	//do stuff in here
}
//or
$('#yourDiv:visible').callYourFunction();
2
$(":visible");
//or
$().is(":visible");
1
// Checks CSS content for display:[none|block], ignores visibility:[true|false]
$(element).is(":visible");

// The same works with hidden
$(element).is(":hidden");
10
$('.eipC:visible').length 

//or

$('.eipC').is(':visible').length
0

New to Communities?

Join the community