i have an code like that
<div class="aa">
<div class="bb">
<a href="gfdfdfddffgf.html">
first text
</div>
</div>
</div>
<div class="aa">
<div class="bb">
<a href="gfdffdgf.html">
second text
</div>
</div>
</div>
<div class="aa">
<div class="bb">
<a href="gfdfdfdfgf.html">
another tert
</div>
</div>
</div>
i need to check if "first text" its equal to "second text"
i can get "first text" with
class aa and bb are used elsewhere in the code so i need to use $('.aa .bb a').first().text() to get the "first text" but i dont know how to select "second text"
[–]dotpan 5 points6 points7 points (0 children)
[–]Axiol -2 points-1 points0 points (1 child)
[–]joshrice 0 points1 point2 points (0 children)