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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:13:49+00:00 2026-05-26T22:13:49+00:00

Probably best to explain with an example: <div id=tab-1> <input name=1 type=text /> <input

  • 0

Probably best to explain with an example:

<div id="tab-1">
  <input name="1" type="text" />
  <input name="2" type="text" />
  <input name="3" type="text" />
<div>
<div id="tab-2">
  <input name="4" type="text" />
  <input name="5" type="text" />
  <input name="6" type="text" />
<div>

I’m using the Jquery Tools “Tabs” tool. This toggles the visibility of the two divs above so that only one shows at a time.

The problem is as follows:

  1. The user Switches to tab 2. This hides tab-1, and fields 1 through 3.
    This also shows tab-2 and its children, fields 4 through 6.

  2. The user takes an action on tab-2 that should remove field 2 from the now hidden tab-1. I’m using $('#field-2').hide(0);

This should hide field two, but does nothing since field two is already hidden. That’s fine for now.

3.The user switches back to tab-1.

Actual result:
All three fields, including field 2, are now visible again.

Desired result:
Fields 1 and 3 are now visible, but switching to tab-1 does not un-hide field 2, since it was explicitly hidden by a function. Field 2 should stay hidden until explicitly unhidden.

I’m thinking I may be able to circumvent this by assigning a special css class to the field with display:none;, but I was wondering if there’s a better solution to show/hide independatly of the tab the element is on without assigning extra css classes.

  • 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-26T22:13:50+00:00Added an answer on May 26, 2026 at 10:13 pm

    It appears to work if you actually change the element’s display style, instead of using hide:

    $('selector').css('display', 'none');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is probably best shown with an example. I have an enum with attributes:
OK, probably best to give an example here of what I mean. Imagine a
I'm not sure how to explain this probably, so I'll use an example. I
This is probably best explained with an example. I have the following table, where
Probably not the best title, but I'll explain: I have an array of objects
The best way to explain my problem is probably just to show you my
working PHP probably on amazon ec2... can anyone explain what would be the best
Probably best explained with an example: struct A { virtual void foo() = 0;
The question is probably not the best one to describe my issue but I
This will probably be obvious but I can't find the best way. I want

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.