Here is my structure :
<ul class="subcategories" id="items-23">
<li>
<a data-item="35" class="itemLink">
others
</a>
</li>
<li>
<a data-item="24" class="itemLink">
Cars
</a>
</li>
<li>
<a data-item="28" class="item-link activeSelection">
Bikes
</a>
</li>
</ul>
I want to add this button to the activeSelection only :
<a class="btn item-next" id="NextButton" href="#">Next</a>
. When i click on <li>
it add activeSelection class.
I tried in the source code. As <li>
are generated automatically, if i had the button, when see it on every <li>
.
Someone understand my problem and could have a solution for it ?
Thanks in advance !!!
------------the result expected -----------
As you see i've selected the first categorie, and my button is displayed
http://rentaweb.fr/wp-content/uploads/2013/07/screenshot.png