DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
JQuery: Check If Element Is Visible
// here parameter element is a jquery wrapped object and not html element
function isVisible(element){
if(elem.is(":visible")){
return true;
}
else{
return false;
}
}
You would use it like below
if(isVisible($('#elementId')){
alert("Visible");
}





