To check whether an element is visible, you can use the following piece of code:



if($(element).is(":visible") == "true")
{ 
//The DOM element is visible
}
else
{
//The DOM element is invisible
}

 
Tagged: