JQuery Show local div on multiple div rows -


i dynamically displaying multiple rows of div's.

div sets this:

<div class="triggerbutton">     <img src="/images/clickme.png" alt="" /> </div>  <div class="hiddendivs" style="display:none;">     stuff here  </div> 

i using jquery:

$('.triggerbutton').click(function() {      $('.hiddendivs').show('slow');  }); 

but want hiddendivs after triggerbutton showed , not hiddendivs available.

how can this?

assuming hiddendivs next sibling use

$('.triggerbutton').click(function() {     $(this).next().show('slow'); }); 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -