how to collect data from radio buttons in html code example Example: radio button group get value javascript $('input[name=gender]:checked').val();