I need a js script show / hide with only shown one div at time others closed. By default any (only one) must be shown.
I have got this script: http://jsfiddle.net/kolxoznik1/BFV9k/.
I want to add some class like show:
<div class="toggle show">Content</div>
If show will be added div will not be hided, he will heve status show() othervise all divs will be hide().
Suppose someone will help me with my small problem.
If you mean the last active element shouldn’t hide, then try this:
Here is a forked demo of your version.