I need to create navigation that shows / hides multiple divs.
Here is what I need to be able to do: If a user clicks on any of the \"options
See http://jsfiddle.net/XwN2L/415/ . It removes the class "selected" from all .showSingle
anchors, then adds the class "selected" to the clicked anchor. Also, it handles the onload problem by hiding all the .targetDiv
s and showing only the first one.
EDIT: Should highlight the first option in red on page load too. http://jsfiddle.net/XwN2L/421/