Swap div content from the same text link
That post has almost what i need to answer my question. It works fine for two DIVs, what if I have quite a few. How would you change the function without having to keep adding declaration lines for more variables?
If you can use jQuery, you could try something like this: http://jsfiddle.net/k9JC4/6/
Html:
Css:
Js:
How this works is that when you click on a link with the class .que jQuery will find the next sibling element with the class .ans. It will hide all other .ans class members then show the sibling found.