how to add class to corresponding menu item
<p>I have a riddle that I cant solve.</p>

<p>I've got two navigations.</p>

<pre><code>&lt;ul id="menu"&gt;
&lt;li&gt;&lt;a href="#"&gt;element1&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;element2&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;element3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;element4&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;element5&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div id="nav"&gt;
&lt;ul class="other"&gt;
&lt;li&gt;&lt;a href="#"&gt;element 1&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;element 2&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;element 3&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;element 4&lt;/li&gt;
&lt;li&gt;&lt;a href="#"&gt;element 5&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>What I would like to do is:</p>

<p>When I click on #menu element 3, then I would like to addClass current to this element and also add current class to element 3 in the #nav .other navigation.</p>

<p>So clicking into the element in #menu will cause adding a class to clicked element of #menu and #nav .other, and also clicking in #nav .other li a will cause adding a class to corresponding #menu li a.</p>

<p>Thanks in advance!</p>
