Reputation: 3453
I have the following html:
<div>
<div class="A">Some details</div<>
<div class="B">Some details</div<>
<div class="C">Some details</div<>
</div>
What is the correct jquery syntax to select the div with class="C" starting from $(this) when "this" contains the class=A div?
Upvotes: 0
Views: 132
Reputation: 23208
This may solve your problem
$(this).parent().find(">div.C")
OR
$(this).siblings(".C")
Upvotes: 0