作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
如果我想选择所有选中的复选框,我可以这样做。
$('#mydiv input[type=checkbox]:checked')
是否有类似的简单语法可以让我选择所有未选中的复选框?
最佳答案
嗨,是的:演示 http://jsfiddle.net/usvrb/
http://api.jquery.com/not-selector/
引用
The .not() method will end up providing you with more readable selections than pushing complex selectors or variables into a :not()
selector filter. In most cases, it is a better choice.
希望这有帮助,:) 干杯!
关于javascript - 查找所有未选中的复选框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10150104/
我是一名优秀的程序员,十分优秀!