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
var c = 1; $("#toggle_value").click(function() { $("#div" + c).hide("fast"); $("#div" + ++c).show("fast"); if (c > 3) c=1; });