how to check radio button groupname for selected radio button in js code example Example: radio button group get value javascript $('input[name=gender]:checked').val();