The snippet below repeats many times per page. When I click .load_comments, how I can select .answer_comments?
I guess the easiest way to do it is to select first the parent (.single_answer) and then just use descendant selectors to select the div I need. I'm having problems selecting the .single_answer parent. Using $(".single_answer:parent") selects ALL those divs on the page, which makes sense since they are all parents of something.
I'm not sure if one can use something along the lines of $(this).parent ... ? I can't quite figure out the syntax but I know I'm close.
Thanks for any pointers.
<div class="single_answer">
<p class="answer_author">On 12 Nov X said: </p>
<p class="answer_text">Bla</p>
<a href="#" id="" onclick="return false" class="load_comments">View 2 Comments</a>
<a href="#" id="aid_16-qid_54" onclick="return false" class="comment">Comment</a>
<div class="container answer_form_container"> </div>
<div class="container answer_comments"> </div>
</div>