I want to select the next anchor element to the "active" class, in following example I want to select element <a href="/home?page=2"> 2 </a>
is it possible by class .active
?
<ul class="pagination">
<li><a href="/home?page=1" class="active"> 1 </a></li>
<li><a href="/home?page=2"> 2 </a></li>
<li><a href="/home?page=3"> 3 </a></li>
</ul>
Note : Please note that "active" class is given to the anchor element