Hi,
You may do this by manually, that means you needs to use to classes(css) to differentiate active and inactive a tag ,
.active
{
color:red;
while clicking in a tag first remove the class property of all a tag
$( "a" ).removeClass("active inactive" );
then add class to particular clicked a tag by
$( "#a_clickedid" ).addClass("active" );
Thanks
Magesh M