I have a bunch of radio boxes on my HTML page. Somewhat like this:
Try this code
$('#buttonId').click( function() { var result = ''; $('input:checked').each(function() { result += ',' + $(this).val(); }); alert(result); });