스크립트언어 뉴비가 질문점 ㅎㅎ        


                <table border="0" height="50">
                    <tr>
                        <th width="100">이름</th>
                        <th width="100"><input type="text" id="name"></th>
                    </tr>
                </table>
                
                <table border="0" height="50">    
                    <tr>
                        <form id="SexForm">
                            <th width="100">성별</th>
                            <th width="40"><input type="radio" name="sex" id="man"></th>
                            <th width="30">남</th>
                            <th width="40"><input type="radio" name="sex" id="woman"></th>
                            <th width="30">여</th>
                        </form>
                    </tr>
                </table>
                
                <table height="50">
                    <tr>
                        <th width="100"></th>
                        <th><input type="submit" value="등록" id="sign" ="sign()";></th>
                        <th><a href="#Recent">Next</a></th>
                    </tr>
                </table>

연습삼아 만들어본 회원가입양식이고

스크립트 부분은

        function sign(){
                
                var jname = document.getElementById('name');
                var form = document.getElementsByName('SexForm');
                var jsex;
                
                if(form.sex[0].checked){
                        jsex = form.sex[0].value;
                }else{
                        jsex = form.sex[1].value;
                }
                
                alert('jsex');
                
        }

지금 만들고 있는 중인데

함수 호출자체는 되는데  저렇게 하면 대화상자가 떠야 되는거 아님? 아무리해도 안됨 무반응ㅜㅜ 라디오버튼 뿐만이 아니라 이름도 alert('name')해도 안뜸... 왜 이러는거지 ㅜㅜ