기본 콘텐츠로 건너뛰기

라디오 버튼 체크 된 값(value) 가져오기

이것은 IE9 이상 및 다른 모든 브라우저에서 작동합니다.
document.querySelector('input[name="rate"]:checked').value;

댓글