JQuery: Check if previous sibling is first-child
<p>Using JQuery, how do you check if an element's previous sibling is the first-child?</p>

<p>I have tried the following code but it does not work:</p>

<pre><code>if( $(this).prev() === $(this).siblings(":first-child") ){
    //do something
}
</code></pre>

<p><b>An example using the above <code>===</code> approach: <a href="http://jsfiddle.net/xnHfM/" rel="nofollow">http://jsfiddle.net/xnHfM/</a></b></p>
