SyntaxFix
Write A Post
Hire A Developer
Questions
If you need to get the value of all checked checkboxes as an array:
let myArray = (function() { let a = []; $(".checkboxes:checked").each(function() { a.push(this.value); }); return a; })()