【发布时间】:2011-12-05 14:04:55
【问题描述】:
如何从输入选择中过滤掉特定控件?在下面的示例中,单选过滤器,但提交、按钮、id 等似乎没有过滤。
$(':input', '#myForm')
.not('type=radio')
.not('type=submit')
.not('type=button')
.not('id="someID"');
谢谢!
【问题讨论】:
-
你想得到什么?我认为反过来(只选择你需要的东西)而不是得到所有东西并过滤掉你不需要的东西
标签: jquery jquery-selectors html-parsing