views:

104

answers:

1

How do I select all <div> elements which do not contain any <img> elements using jQuery?

+5  A: 
$('div:not(:has(img))')
Tatu Ulmanen
sounds like something a lolcat captioneer would come up with
Ty W
a LISP lolcat...
Fábio Batista