[Answer]-How to check status of Django generated multiple checkbox?

1πŸ‘

βœ…

I would give those boxes a class, something like class='the_checkboxes'
Then use:

$(".the_checkboxes:checkbox:checked").each(function()({
    allVals.push($(this).val());
});

It will be cleaner (to me, anyway).

πŸ‘€Rob L

Leave a comment