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:
$("div#productInfoGrid").has('img').hide();
Demo
$("#div#productInfoGrid:not(img)") should be $("div#productInfoGrid:not(img)")
$("#div#productInfoGrid:not(img)")
$("div#productInfoGrid:not(img)")