jquery :has check for images then apply css
<p>If relatedProductsArea contains NO images then HIDE the div.    </p>

<pre><code>&lt;div id="RelatedProductsArea" style="border-radius: 7px 7px 7px 7px;"&gt;&lt;br clear="all"&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>Finding NO images means there are no related products.</p>

<p><strong>What i have tried:</strong></p>

<pre><code>$('#RelatedProductsArea').has('img').css('border', 'none');
</code></pre>

<p>Heres an example: <a href="http://jsfiddle.net/K2Cp6/" rel="nofollow">http://jsfiddle.net/K2Cp6/</a></p>

<p><strong>Question:</strong> how do i hide the div or remove the border in my jsfiddle example?</p>
