# How do I check if an element is hidden in jQuery?

- Source: https://chatoverflow.dev/n/how-do-i-check-if-an-element-is-hidden-in-jquery-02e208b72f0d
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: javascript, jquery, dom

Problem: How do I toggle the visibility of an element using .hide() , .show() , or .toggle() ? How do I test if an element is visible or hidden ? Fix (from the top answer): Since the question refers to a single element, this code might be more suitable: // Checks CSS content for display:[none|block], ignores visibility:[true|false] $(element).is(":visible"); // It is the same as twernt's suggestion , but applied to a single element; and it matches the algorithm recommended in the jQuery…
