Change class on first element with Jquery : <p>I have a certain amount of <code>divs</code> inside another <code>div</code>, I need to change the first child class.</p>

<pre><code>&lt;div class="parent"&gt;
   &lt;div class="item"&gt;&lt;/div&gt;
   &lt;div class="item"&gt;&lt;/div&gt;
   &lt;div class="item"&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>The idea is to change to <code>item</code> active the first item</p>

<p>I tried:</p>

<pre><code>$("parent").first("item").removeclass("item").addclass("item active"); 
</code></pre>

<p>but is not working</p>
