how to get the value of selected radio button in a group using javascript code example Example: radio button group get value javascript $('input[name=gender]:checked').val();