I have 10 groups of radio button with two options, each group separated by a <div>.
<div id = "radio1">
<p>Do you like to walk?</p>
<input type="radio" value="a" name="radgrp1"/> Yes <br />
<input type="radio" value="b" name="radgrp1"/> No <br />
</div>
<div id = "radio2">
<p>Would you prefer to walk without effort?</p>
<input type="radio" value="a" name="radgrp2"/> Yes <br />
<input type="radio" value="b" name="radgrp2"/> No <br />
</div>
Then I have 10 tags that point to each group.
<a id ="a1" href="#radio1">Goto 1</a>
<a id ="a1" href="#radio2">Goto 2</a>
What I am looking to achieve is the moment a user clicks on "Yes" option, color of respective tag ie Goto 1, Goto 2 etc turns green.