I am learning jquery and java scripts but still not good enough with it . I am trying to make a toggle Effect but unable to make it happen . so I am asking here if this can be possible . HERE is WHAT I what :
I have Two div inside a Div : Link for js Fiddle :http://jsfiddle.net/saifrahu28/zzju3/2/
What I am trying to make is : Firstly When the page loads the Blue Div should Display and Green should be hiding . And Whenever I click any of the 3 link inside he Blue Div Green Div Should appear and Blue Div Should Hide . And Same for the Green also , when clicking in the link in side the Green Div should Open Blue div and Hide the Green . Is this possible ?
Here is he Code:
HTML
<div style="width:300px; height:200px; background:#FFC;">
<div class="blueDiv">
<a>Click Me to Hide Blue Div 1</a>
<a>Click Me to Hide Blue Div 2</a>
<a>Click Me to Hide Blue Div 3</a>
</div>
<div class="GreenDiv">
<a>Click Me to Hide Green Div and Show Blue Div Div</a>
</div>
</div>
CSS
.blueDiv{
width:200px;
height:100px;
background:#09F;
}
.GreenDiv{
width:250px;
height:150px;
background:#0C9;
}
a{ text-decoration:none;
cursor:pointer;
font-size:10px;
}