$("input[type='checkbox']").is(':checked')
is a test that returns a Boolean (true
/false
). true.each()
does not make sense, neither does false.each()
.
$("input[type='checkbox']:checked")
returns a collection of jQuery elements that you can iterate over using $.each
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…