How to get an invoice with a choice of type $ ("....: checked")?

I need to get the number of flags that are currently being checked.

How to do it?

$(".... :checked").count() does not work.

+5
source share
8 answers
$("input:checked").length;
+16
source

try it

$("input:checked").length
+3
source

:

$(":checked").length
+2

.length; : $('#some_id input:checked').length.

0

. length . size() - , , . . -, , .

0

length.

$("#something:checked").length;
0

, :

$('input[class="yourCheckBoxClass"]:checked').length;

This will give you the total number of checked flags.

0
source

All Articles