메뉴 건너뛰기

2014.03.01 21:54

라디오 버튼 체크

조회 수 5451 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
<script language="JavaScript"> 
<!-- 
function radiocheck(){ 
var frm = document.form 
    for(var i = 0; i < Frm.location.length; i++){ 
        if(Frm.location[i].checked){ 
            break; 
        } 
    } 
    if(i == Frm.location.length){ 
        alert('체크 하삼.'); 
        return; 
    } 
} 
//--> 
</script> 
 <form name="Frm"> 
<input type="radio" name="location" value="1">1 
<input type="radio" name="location" value="2">2 
<input type="radio" name="location" value="3">3 
<input type="radio" name="location" value="4">4 
<input type="radio" name="location" value="5">5 
</form> 
 <input type="button" value="테스트" onClick="radiocheck();"> 

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved