javascript - Styling multiple div toggles differently within one another -


i have created toggle of multiple divs showcase different categories of content. 1 example:

<div id="left">  <h4 class="expanding-header-active" profile='1'><a href="#">+ 1</a></h4>  <div class="toggle-container" rel="profile_1">    <ul>    <li class="expanding-subhead-active" profile='4'><a href="#">a</a></li>    </ul>   </div>   <div id="right">  <div class="toggle-container" rel="profile_4"> <h2>a</h2> <p>yada yada yada</p> </div> </div> 

i have created fiddle shows more of talking about:

fiddle

i need main divs (+1, +2, +3) stay open when inner divs (a, b, c, d, e, , f) being clicked about. but, 1 of main divs (+1, +2, +3) can opened @ time.

the fiddle updated closer need - now, there way prevent , b being opened @ same time without sacrificing current structure?

if dont want hide this, remove command hide. remove line:

$(".toggle-container").not($(this).next()).hide(300); 

http://jsfiddle.net/a8ymj/1122/


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -