Styling a list item with a child
<p>I've been going around in circles for hours, I keep getting errors with this code :</p>

<pre><code>$('div.colA div.region-sidebar-left div.menu-block-wrapper').find('li').each(function() {
        if ($(this).find('&gt; ul').size() &gt; 0) {
            $(this).addClass('has_child');
        }
});
</code></pre>

<p>All it is supposed to do is find all the <code>&lt;li&gt;</code> with a child of <code>&lt;ul&gt;</code> and give it a class. Simple.</p>

<p><a href="http://jsfiddle.net/simcox90/mEMmN/" rel="nofollow">http://jsfiddle.net/simcox90/mEMmN/</a></p>
