How to check if the div is displayed none or block using jQuery

Check the div is display or not

In jQuery how to use the CSS property in the condition statement. If you want to check the condition html element have this CSS property. How to use that in the jQuery condition statement.

Here I want to check the Div is visiable are not.

Here’s the solution:
if($('div').css('display') == 'none')
{
}

or

if(!$('#yourID').is(':visible'))
{
}
Copyright Labw3