Back
It is possible to toggle the visibility of an element, using the functions .hide(), .show() or .toggle()?
How would you test if an element is visible or hidden?
To check if an element is hidden in jQuery you can use visible and hidden method based on the value it will return true or false:
$(element).is(":visible"); $(element).is(":hidden");
$(element).is(":visible");
$(element).is(":hidden");
Enroll in our web development course to become as an expert in Web Development!
31k questions
32.8k answers
501 comments
693 users