How do i check if an element is hidden in jQuery? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do i check if an element is hidden in jQuery?

It is possible to toggle the visibility of an element ,using the function .hide(), .show(), or .toggle(). How would you test if an element is visible or hidden?

7th Mar 2017, 11:35 PM
Artem Borodovoi
Artem Borodovoi - avatar
1 Answer
+ 1
Try to use :visible $(element).is(":visible")
7th Mar 2017, 11:38 PM
AtoMX
AtoMX - avatar