I have a bunch of radio boxes on my HTML page. Somewhat like this:
$( '#my-button-id' ).click( function() { var tmp = ''; $( '.custom:checked' ).each( function() { // Do what you want... tmp += ' ' + $( this ).val(); }); alert( tmp ); });