how to get values of html5 input radio code example Example: get radio button value javascript document.querySelector('input[name="rate"]:checked').value;