i have mutable elements with different id and want to match the id name with the class on the A tag then toggle a class to the a tag`
<a id="AB" href="" class="divone marker"><span>This is ab</span></a>
<a id="ABA" href="" class="divtwo marker"><span>This is aba</span></a>
<a id="ABAB" href="" class="divthree marker"><span>This is abab</span></a>
<div id="divone"></div>
<div id="divtwo"></div>
<div id="divthree"></div>
when i hover over the div it gets the ID then matches it to the class on the a tag and adds class active and when i remover the hover it removes the class
I hope this makes sense and any help would be much appreciated
Thanks in advance Dan