Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个网络表单,其中字段集包含字段集。我想使用 jquery 来选择不是孩子的字段集?我怎样才能做到这一点?
如果您想要的字段集是表单的直接子级,请尝试:
$('form > fieldset')
有关更多信息,请参阅jQuery 子选择器文档
您可以使用直接后代选择器:form > fieldset。
form > fieldset