I would like to show a div based on the Onclick event of an link.
First Click - Show div1
Second Click - Hide remaining div\'s and Show div2
Third Click
I'll try my shot.
EDIT: After second though, to avoid global variable use it's better to do the following
$(document).ready(function() {
$("#toggle_value").click((function(){
var counter = 0;
return function()
{
$("#div" + counter).hide("fast");
counter = (counter % 3) + 1;
$("#div" + counter).show("fast");
}
})());
});