dkarzon dkarzon - 10 months ago 40
jQuery Question

How can I select all TD elements that don't contain an A element?

I'm trying to use JQuery to select all of the

TD
's in a
table
that DON'T have an
A
tag inside them. (They should just have text). How can I do this?

Answer Source
$("td:not(:has(a))").doStuff();