Find next element and show
Hello
I have this situation where I click the first reply and it shows first respond but problem is when I click second reply only first respond stays showed. How do you show the next one to leavecomment?
Here code example:
- <a class="leavecomment">Reply</a>
- <div id="respond" style="display:none;">blah</div>
- <a class="leavecomment">Reply</a>
- <div id="respond" style="display:none;">blah</div>
- <a class="leavecomment">Reply</a>
- <div id="respond" style="display:none;">blah</div>
- jQuery('.leavecomment').click( function () {
jQuery(this).find("#respond").show();
}
);