I want to get the selected value from a group of radio buttons.
Here\'s my HTML:
This works in IE9 and above and all other browsers.
document.querySelector('input[name="rate"]:checked').value;