how do you change the color of a link once clicked, then change it back once another link is clicked?
<p>I have two links inside a div called div A. when link 1 is clicked a div with some info is shown (div B) and when the link 2 is clicked a different div(div C) is shown. This is done using jquery's show/hide.</p>

<p>I would like the color of the <strong>selected</strong> link to change and then return only <strong>once the other link is clicked</strong>. therefore highlighting which link the user is currently viewing.</p>

<p>Does anyone know how I go about achieving this link color change through Jquery or even PHP. Thank you. All help is greatly appreciated.</p>

<p>Javascript</p>

<pre><code>    $("#link1").click(function() {
    $("#Div b").hide();
    $("Div c").show();
    });

    $("#link2").click(function() {
    $("#Div b").hide();
    $("#Div c").show();
    });
</code></pre>

<p>HTML</p>

<pre><code>&lt;div id="div a"&gt;
&lt;a href="javascript:void(0);" class="links" id="link1"&gt;&lt;/a&gt;
&lt;a href="javascript:void(0);" class="links" id="link2"&gt;&lt;/a&gt;
&lt;/div&gt;
</code></pre>
