jQuery Selector Click Function Help
<p>I am trying to apply the following jquery click function but for some reason can't seem to get the selector right, i.e.:</p>

<pre><code>$("ul.menu li a").click(function(){
   $("ul.menu li").find("a").removeAttr("id");
   $(this).attr("id" , "current" );
});
</code></pre>

<p>This is my HTML code I am trying to apply it to, i,e,:</p>

<pre><code>        &lt;div id="sidebar"&gt;
            &lt;ul class="menu noaccordion"&gt;
                &lt;li&gt;
                    &lt;a href="#" id="current" class="topm"&gt;Home&lt;/a&gt;
                &lt;/li&gt;
                &lt;li&gt;
                    &lt;a href="#" class="topm"&gt;About Us&lt;/a&gt;
                &lt;/li&gt;
</code></pre>

<p>My aim is to try and set the current menu selected using the id=current.</p>

<p>Any help to get jquery selector correct would be much appreciated.</p>

<p>Thanks.</p>
