jQuery makes it easy to show, hide or toggle the visibility of a DOM element with the
It’s often useful to test if an element has been hidden or shown using jQuery. You can easily do this using the
is() method to check if an element has a
// Checks for display:[none|block], ignores visible:[true|false] $(element).is(":visible")
Here’ how it looks in context.
About the Author
Kevin Leary is a freelance developer in Boston, MA with a strong portfolio of work, and over 13 years of experience as a programming consultant and digital strategy provider. Interested in working together? Hire me for your next project.