JQuery check element is visible or not

How to check html element is visible/display or hidden using JQuery.This is very easy job.JQuery is() function can be easily use to this.Look at these examples.Those are perfectly working and responding all browsers.
This is the element.


Here,check that is visible or not.

if( $('#myDiv').is(':visible') ) {
    // Element is visible
}
else {
    // Element is not visible
}

Also you can use this to check visible or not that element.