i try to show and hide divs on click but something isnt going wel
can someone have a look at this
what i want is:
-
when people arrive on the page they see the content of the first “news” div
-
when clicking on a other anchor they will see the corresponding content instead of the previous
-
append a style to the active anchor link
I have searched whole this site , and well the result is in the Fiddle
can someone help me with this
So you want to hide all
.newsexcept the first one?http://jsfiddle.net/R4ng5/13/
And if you want to style the active link:
http://jsfiddle.net/R4ng5/14/