I am having a challenge.
I have 2 divs
, one set to display:none;
in the css when the page loads
I have two corresponding links. When the user clicks on
This is a very simple principle...you can achieve it many ways, this is just one example.
Ignore the selectors, I'm lazy.
The HTML ->
Show Div 1 | Show Div 2
Div 1
Div 2
The CSS ->
#div1{
display:none;
}
The jQuery ->
$('a:eq(0)').click(function(){
$('#div1').toggle();
$('#div2').toggle();
});
$('a:eq(1)').click(function(){
$('#div2').toggle();
$('#div1').toggle();
});