How to get the value of a selected radio button June 16, 2023 by Tarik This works in IE9 and above and all other browsers. document.querySelector('input[name="rate"]:checked').value;