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
That fiddle helped me, it is really understandable : http://jsfiddle.net/bipen/zBdFQ/1/
$("#link1").click(function(e) {
e.preventDefault();
$("#div1").slideDown(slow);
$("#div2").slideUp(slow);
});
$("#link2").click(function(e) {
e.preventDefault();
$("#div1").slideUp(slow);
$("#div2").slideDown(slow);
});