HTML:
<li class="comment">
<div class="p_comm">
<div class="avatar"><img src="/img/1.jpg"></div>
<div class="c_auth">author<a class="del" title="delete it!" rel="19">x</a></div>
<div class="c_cont w">what ever</div>
<div class="c_time">12-23 13:22:15</div>
</div>
</li>
I want to find the parent li relative to the <a> in this section. I can’t find a function to do this. I’ve tried prev(),parentsUntil() none of them can do this. Currently i have to use $(this).parent().parent().parent() to reach <li>. Is there a function to find parent <li> directly?
Or this: