SyntaxFix
Write A Post
Hire A Developer
Questions
Use:
document.querySelector('#elementId:checked').value;
This will return the value of the selected radio button.