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 7021301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:25:55+00:00 2026-05-27T23:25:55+00:00

If the visible of a server side control is set to false, even I

  • 0

If the visible of a server side control is set to false, even I know it’s id, is that possible to know that it is invisible by using jQuery? what code should I use, say the control id=”test1″.

  • 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-27T23:25:55+00:00Added an answer on May 27, 2026 at 11:25 pm
    if ($('#test1').is(':hidden')) {...}
    

    Or

    if ($('#test1').css('display') == 'none') {...}
    
    • The first uses the jQuery pseudo-selector :hidden: http://api.jquery.com/hidden-selector/
    • The second just tests the display property of the element to see if it is set to none (hidden…)

    The :hidden pseudo-selector checks the following:

    • If the object has a CSS display value of none.
    • If it is a form element with type=”hidden”.
    • If the element’s width and height are explicitly set to 0.
    • If an ancestor element is hidden, so the element is not shown on the page.

    If setting the element visible = false on the server-side makes the element not included in the DOM then you can check for the existance of an element with this:

    if ($('#test1').length > 0) {..}
    

    .length will return the number of elements found, since we are selecting with an ID we know only one can be returned, so if .length returns zero then the object doesn’t exist and if it returns one then it does.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If you set the Visible property of a Windows Forms control to true, that
I've always thought that server-side code is unaffected by the browser requesting it, but
I have a custom control that extends ASP.NET Update panels. On the server side
I have an HTML document that is generated on the server side using JSP.
How do you set the visibility of a (fileupload) control from ASP.net code (I
my problem is this: i want to create a server control that inherits System.Web.UI.WebControls.Button
Using ASP.NET MVC's default view engine, you can declare a server-side comment like this:
I use a treeview Control plugin ( server side) which reproduce me this :
When I click the add tab button, server side code ( tabs.ActiveTabIndex+=1 ) changes
These are Programmer Visible x86-64 registers: (source: usenix.org ) What about the invisible registers?

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.