JS newbie needs help with Jquery
<p>I am trying to write a jquery function but am brand new to jquery.  Here is my very simple function, which I want to clear all of the links to the unselected class, except for the selected link:</p>

<pre><code>$(function() 
{
    $('li a').click(function()
    {
        $('li a').addClass('unselected');
    $(this).addClass('selected');


    });


});
</code></pre>

<p>How do I do this?  And then how do I deselect all of the ones except for those with a specific name attribute? Here is an example of a link:</p>

<pre><code>&lt;li&gt;&lt;a id="106" name="wavelength" href="#"&gt;10.6 &amp;micro;&lt;/a&gt;&lt;/li&gt;... set of links
</code></pre>

<p>and another set of links</p>

<pre><code>&lt;li&gt;&lt;a id="10watt" name="power" href="#"&gt;10 watt&lt;/a&gt;&lt;/li&gt;....
</code></pre>
