Find first id in jquery
<pre><code>&lt;div class="activity" id="4"&gt;
&lt;div class="activity" id="3"&gt;
&lt;div class="activity" id="2"&gt;
&lt;div class="activity" id="1"&gt;
</code></pre>

<p>and jquery code to find first id</p>

<pre><code>var ID = $('.activity:first').attr('id');
</code></pre>

<p>whats wrong there? error in firebug</p>

<p>Warnung: Unbekannte Pseudoklasse oder Pseudoelement 'first'.
Zeile: 0</p>

<p>thank you</p>
