I have a bunch of radio boxes on my HTML page. Somewhat like this:
The following will put the value of the value attribute for each selected radio button into the arr Array:
value
arr
var arr = []; $(".custom:checked").each(function () { arr.push($(this).val()); });