Direct dry goods:
0. Checkbox
$(":checked") = $("input:checked")Copy the code
1, checkbox is not checked
$("input:not(:checked)")
Copy the code
1) attribute l=4 and value! = 0
$('input[l=4][value!=0]')
Copy the code
2) Attribute l=4 or value! = 0
$('input[l=4],[value!=0]')
Copy the code
3) Attribute l=4 and value! =0 and the checkbox is not checked
$("input:not(:checked)[l=4][value!=0]");
Copy the code
Reference article:
JQuery Reference Manual – Selectors
Jquery attribute selector (with or without multiple criteria)