jquery attr and eq
<p>I have a menu, I want to add class "current" to the <code>&lt;li&gt;</code> with <code>id="home"</code>, so this is what I tried:</p>

<pre><code>$('#main-nav ul li').attr('id').eq('home').addClass('current');
</code></pre>

<p>I also tried .is instead of .eq, non of them works!</p>

<p>How I could achieve this?</p>

<p>Thanks</p>
