How can I check if an element (h2) is really the first element inside a div?
<p>I want to "manage" the first h2 element inside a div, only if it's really the "first element"</p>

<pre><code>&lt;div id="test"&gt;
    &lt;h2&gt;Try 1&lt;/h2&gt;
    Test Test Test
    &lt;h2&gt;Try 2&lt;/h2&gt;
&lt;/div&gt;  
</code></pre>

<p>here only h2 with text "Try 1" must be managed</p>

<pre><code>&lt;div id="test"&gt;
    Test Test Test
    &lt;h2&gt;Try 1&lt;/h2&gt;
    &lt;h2&gt;Try 2&lt;/h2&gt;
&lt;/div&gt;  
</code></pre>

<p>Here no (there is text before).</p>

<p>How can I do it with jQuery?</p>
