Site icon Sibeesh Passion

Check Whether An Element Is Visible Or Hidden Using JQUery

In this post, we will see how we can check whether an element (eg: a div) is visible or not using JQuery. I hope you will like it.

Using The Code

To check whether element is visible

[js]
$("#myDiv").is(‘:visible’)
[/js]

To check whether element is hidden

[js]
$("#myDiv").is(‘:hidden’)
[/js]

Here myDiv is my div.

Please see other code snippets here: Code-Snippets

Kindest Regards
Sibeesh Venu

Exit mobile version