var getRadio = document.querySelectorAll('[name="radio-button"]:checked'); console.log(getRadio.value);