원버튼으로 라디오버튼 복수 선택 정보
원버튼으로 라디오버튼 복수 선택본문
register.skin.php에서 하나의 버튼 클릭시 agree11(회원가입약관 동의하기 라디오버튼)과 agree21(개인정보취급방침 동의하기 라디오버튼)가 체크되도록 하고 싶습니다.
어떻게 해야할까요?
가급적 a href로 모두동의 버튼을 만들고 싶습니다.
어떻게 해야할까요?
가급적 a href로 모두동의 버튼을 만들고 싶습니다.
댓글 전체
onclick="fregister.agree11.checked= true;fregister.agree21.checked= true;"
답변주셔서 감사합니다~ 방금 아래처럼 함수 추가해서 하긴 했는데 슈와이님이 알려주신 방법도 잘 되네요!
function radio_all()
{
document.getElementById("agree11").checked = true;
document.getElementById("agree21").checked = true;
return false;
}
function radio_all()
{
document.getElementById("agree11").checked = true;
document.getElementById("agree21").checked = true;
return false;
}