check if element is visible jquery

JavaScript
// Checks CSS content for display:[none|block], ignores visibility:[true|false]
$(element).is(":visible");

// The same works with hidden
$(element).is(":hidden");.is(':visible')
//Selects all elements that are visible.

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

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

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

Source

Also in JavaScript: