how to get radio slesction when buttin cicked code example Example: get radio button value javascript document.querySelector('input[name="rate"]:checked').value;