I’ve got a page with a repeater and a bunch of documents that should be hidden to start and then shown with a plus sign next to each.
My question is – do I have to assign unique ID to each document DIV to make it be able to toggle hidden and shown?
What’s the most code-efficient way to handle this?
Here is a quick example:
http://jsfiddle.net/aaamU/
HTML
CSS
JS
Here is a Fork with the sliding version:
http://jsfiddle.net/W5QkY/1/