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
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.