SyntaxFix
Write A Post
Hire A Developer
Questions
I just shortened the answer I selected a bit:
var selectedGroups = new Array(); $("input[@name='user_group[]']:checked").each(function() { selectedGroups.push($(this).val()); });
and it works like a charm, thanks!