Use Jquery variable to identify a div class/Id
<p>I'm sure the answer to this is simple, I've just been able to figure it out.</p>

<p>I have a simple click function which applies to any links in a list being clicked. When one is clicked, I want it to remove a class on a div, which is related to one of the links attributes. E.g:</p>

<pre><code>// The link
&lt;li&gt;&lt;a href="#" title="example1"&gt;example1&lt;/a&gt;&lt;/li&gt;

// The div
&lt;div id="example1" class="selected"&gt;&lt;/div&gt;
</code></pre>

<p>This is the kinda thing that I've tried, but it aint right:</p>

<pre><code>$("ul.switcher a").click(function(e){
 e.preventDefault();
 $("#" + $(this().val).removeClass("selected");
});
</code></pre>

<p>Any help would be much appreciated! If anyone could also tell me the JavaScript equivalent of doing this too that would be a nice bonus!</p>
