11
You can use the has() selector
$('.customData div:has(img)').doSomething()
Not sure what you want to do, if you wanted to count them for example:
alert( $('.customData div:has(img)').length)
API Refrence http://api.jquery.com/has-selector/