gpt4 book ai didi

javascript - 在 JS 中使用选择器

转载 作者:行者123 更新时间:2023-12-02 17:55:15 24 4
gpt4 key购买 nike

我知道你可以做类似input:not([type=text])等的事情..

我想要获取除带有 id = 'x' 的输入字段之外的所有文本类型的输入字段。

可以用选择器吗?

最佳答案

当然,尝试$('input[type="text"]:not("#x")')

<强> jsFiddle example

关于javascript - 在 JS 中使用选择器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21006858/

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