gpt4 book ai didi

javascript - 查找没有类复选框的 td 元素

转载 作者:行者123 更新时间:2023-11-28 11:48:20 25 4
gpt4 key购买 nike

如何查找表中不包含类名为 chkCheckBox1 的复选框的 td 元素

创建了此fiddle

我尝试使用 .filter 并找到 td 但没有成功。

$("#LstDocTemp").filter("td:not(.chkCheckBox1)")

如有任何帮助,我们将不胜感激

最佳答案

您可以像这样使用 :not():has() DEMO

$("td:not(:has(input.chkCheckBox1:checkbox))")

关于javascript - 查找没有类复选框的 td 元素,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42955017/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com