Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7616263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:50:53+00:00 2026-05-31T02:50:53+00:00

So jQuery provides this awesome pseudo to query in DOM on ‘:visible’, unfortunately, its

  • 0

So jQuery provides this awesome pseudo to query in DOM on ‘:visible’, unfortunately, its rather heavily tied into the core of jQuery and Sizzle (or whatever engine you may use). Is there a good equivalent in plain JavaScript when only a given element is known?

A reminder on the jQuery :visible rules:

  • They have a CSS display value of none.
  • They are form elements with type=”hidden”.
  • Their width and height are explicitly set to 0.

An ancestor element is hidden, so the element is not shown on the page.

Note: checking just style of the given element will not always work: a parent might be hidden instead hiding all children.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:50:54+00:00Added an answer on May 31, 2026 at 2:50 am

    You can get the relevant code from the the source code:

    jQuery.expr.filters.hidden = function( elem ) {
        var width = elem.offsetWidth,
            height = elem.offsetHeight;
    
        return ( width === 0 && height === 0 ) ||
               (!jQuery.support.reliableHiddenOffsets &&
               ((elem.style && elem.style.display) || jQuery.css( elem, "display" )) === "none");
    };
    
    • jQuery.css can be replaced with getComputedStyle (or .currentStyle for IE).
    • jQuery.support.reliableHiddenOffsets is a variable which determines whether the properties are reliable (IE8-).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

jQuery provides a browser neutral library for accessing and manipulating the DOM. This is
Does jQuery provides a API to call functions binding the this variable to the
jQuery is highly focused on the DOM and provides a nice abstraction around it.
PrimeFaces provides a lot of icons from jQuery themeroller. They're useful but I need
Jquery did not carry out!!!I don't know why $(.other-edithion).click(function(){ var city = $(this).closest('#city'); if
is there any jquery plugin which provides an dropdown-textbox functionality? something similar to http://lab.anotherdan.com/js/textdropdownlist/
I have to handle a form generated by a third part. This form provides
My employer is blocking the Google CDN domain that provides the jQuery file to
Note: This question refers to a very old version of jQuery.validate() (version 1.5). This
jquery date picker provides lot of attributes to play with it but some how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.