jquery :has check for images then apply css
- by sp-1986
If relatedProductsArea contains NO images then HIDE the div.
<div id="RelatedProductsArea" style="border-radius: 7px 7px 7px 7px;"><br clear="all"><div style="clear:both;"></div>
</div>
Finding NO images means there are no related products.
What i have tried:
$('#RelatedProductsArea').has('img').css('border', 'none');
Heres an example: http://jsfiddle.net/K2Cp6/