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
A simple way would be to introduce a variable that tracked clicks, so something like this:
var tracker = 0; $(document).ready(function() { $("#toggle_value").click(function(){ if(tracker == 0) { $("#div1").show("fast"); }else if(tracker ==1) etc etc tracker ++; }); });