If there is an image in the div then hide the div. But if the image does exist then i need to keep the div visable.
But its not working. Here is my code:
You can use .find() (Reference: http://api.jquery.com/find/)
if ($("#productInfoGrid").find('img').length == 0) { $("#productInfoGrid").hide(); }