简体   繁体   中英

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM