Initially, I have 2 hidden div
elements:
<div id="hidden1" style="display:none;">
<div id="hidden2" style="display:none;">
In addition, there is a visible div
:
<div id="visible" style="display:block">
A jQuery script ensures that only one of the hidden elements can be open at a time, with buttons to toggle between them.
Currently, when both hidden elements are closed, the visible div
is also hidden. My goal now is for the visible div
to reappear when both hidden elements are closed.
If you're interested in viewing the site, you can visit maxdev.tk
The relevant jQuery code snippet is:
$(document).ready(function(){
$("#button1").click(function(){
$("#hidden1").hide(600);
$("#hidden2").toggle(900);
});
});
$(document).ready(function(){
$("#button2").click(function(){
$("#hidden2").hide(600);
$("#hidden1").toggle(900);
});
});