jQuery get second class and remove a class
<p>Hy there,</p>

<p>i have posts sorted by their year. By default they are all hidden (they get the .js class which hides the element). So now it looks like this:</p>

<pre><code>&lt;div class="press-wrapper"&gt;
 &lt;div class="post-entry post-2011 js"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2011 js"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2010 js"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2010 js"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2009 js"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2009 js"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2008 js"&gt;...&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>I want documentReady load all items with the newest date, so it should look like:</p>

<pre><code>&lt;div class="press-wrapper"&gt;
 &lt;div class="post-entry post-2011"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2011"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2010 js"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2010 js"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2009 js"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2009 js"&gt;...&lt;/div&gt;
 &lt;div class="post-entry post-2008 js"&gt;...&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>So i have a function that gets the first post class:</p>

<pre><code>var pressClass = $('.press-wrapper div:first').attr('class').split(' ')[1];
</code></pre>

<p>WHen i now try to remove the ".js" nothing happends:</p>

<pre><code>$(pressClass).removeClass('js');
</code></pre>

<p>What am i doing wrong?</p>
