I have this code
<a href="#">
<span style="border-right: medium none;" class="Yes">Yes</span>
</a>
<a href="#">
<span class="No">No</span>
</a>
if no is current I want when click on yes class calling current adding on yes span and delete current class from no.
If yes current I want when click on no class calling current adding on no span and delete current class from yes.
I want each case happen in just one click.
Here is a sample. This is a first cut, may be this can be optimized. All I am trying to do is remove
currentclass from all the elements and add it to current one.You have to modify your html to have a unique class
This is the jQuery code
see if it helps..