I am attempting to select an anchor from one div to another using jQuery functions such as next(), siblings(), parents(), parent(), and more.
Below is an example of the HTML structure:
<div class="thumbs">
<div class="section">
<div class="wrap">
<a href="link.php" data-selector="ajax">HOme</a>
</div>
</div>
<div>
<div class="thumbs">
<div class="section">
<div class="wrap">
<a href="link2.php" data-selector="ajax">about</a>
</div>
</div>
<div>
I am looking to target the second link. For instance, if my current link is link.php
and I click on a "next" button, I want to extract the following link2.php
link.