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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:04:24+00:00 2026-06-16T02:04:24+00:00

WHAT I HAVE: 3 buttons when one is clicked it gets hidden and its

  • 0

WHAT I HAVE:
3 buttons
when one is clicked it gets hidden and its corresponding box is shown
in each box is a link to close the box
when clicked the box hides

WHAT I NEED:
when the close link is clicked and the box closes, i need the button to be shown again

SUMMARY:
button click toggles button hide / box show, close click toggles box hide / button show

current code

  • 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-06-16T02:04:26+00:00Added an answer on June 16, 2026 at 2:04 am

    you just needed to add $('.showSingle').removeClass('selected'); to the $('.hide').click() function and add a return false at the end of it so that the link’s href doesnt get called (putting the # in the url) I also rewrote the first click event so that its consistent with the second.

    $(function(){
        $('.showSingle').click(function() {
            $(this).addClass('selected').siblings().removeClass('selected');
            $('.targetDiv').hide();
            $('#div' + $(this).data('target')).show();
        });
    
        $('.hide').click(function() {
            $('.targetDiv').hide();
            $('.showSingle').removeClass('selected');
            return false;
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have five buttons on one form that when clicked enables a bool each
I have two radio buttons each with a unique ID. When one is clicked,
I have two buttons with on click functions The 1st one gets assigned a
I have very simple window where I have 2 buttons - one for cancel,
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
In Application i have two buttons in which one button is used as a
I have a set of buttons on one of my custom entities ribbon and
I have two buttons, one for start recording and another for stop recording. i
I have two buttons at the top of a jQuery validated form: one saves
I have some filter and one grid.And grid have some buttons like modify/edit.I am

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.