홈페이지 자가진단기능 여쭤봅니다.
2018.09.25 22:21
밑에 여쭤봤는데 답을 해주신 분이 있어서
그 답글 참고하고 네이버 구글링해서 대충만들었습니다.
여기 까진 만들었씁니다. 근데 결과확인은 클릭했는데 반응이 없습니다.
이것이 html화일입니다.
<table class="__se_tbl" border="0" cellpadding="0" cellspacing="0" _se2_tbl_template="14"><tbody>
<tr><td style="padding: 3px 4px 2px; border-top: 1px solid rgb(70, 105, 151); border-bottom: 1px solid rgb(70, 105, 151); color: rgb(255, 255, 255); text-align: left; width: 896px; height: 18px; background-color: rgb(98, 132, 171);" class="" colspan="5" rowspan="1"><p style="text-align: center;" align="center"><b><span style="font-family: 나눔고딕, NanumGothic; font-size: 18pt;"> </span><span style="font-size: 18pt; font-family: 나눔고딕, NanumGothic;">간이 갱년기 지수</span></b></p></td>
</tr>
<tr><td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 294px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; font-size: 12pt;"><b><span style="font-size: 14pt; font-family: 나눔고딕, NanumGothic;"> </span><span style="font-size: 14pt; font-family: 나눔고딕, NanumGothic;">진 </span><span style="font-size: 14pt; font-family: 나눔고딕, NanumGothic;"> </span><span style="font-size: 14pt; font-family: 나눔고딕, NanumGothic;">단 </span><span style="font-size: 14pt; font-family: 나눔고딕, NanumGothic;">항 </span><span style="font-size: 14pt; font-family: 나눔고딕, NanumGothic;"> </span><span style="font-size: 14pt; font-family: 나눔고딕, NanumGothic;">목</span></b></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 137px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; font-size: 14pt;"><b>매우 그렇다 </b></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 147px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; font-size: 14pt;"><b>그렇다 </b></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 157px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic;"><b><span style="font-size: 14pt; font-family: 나눔고딕, NanumGothic;">약간 </span><span style="font-size: 14pt; font-family: 나눔고딕, NanumGothic;">그렇다 </span></b></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 161px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; font-size: 14pt;"><b>그렇지 않다 </b></span></p></td>
</tr>
<tr><td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 294px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"> 얼굴이 화끈 달아 오른다</span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 137px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r0 value=10></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 147px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r0 value=6> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 157px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r0 value=3> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 161px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r0 value=0> </span></p></td>
</tr>
<tr><td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 294px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);">땀이 쉽게 난다</span><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 137px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r1 value=10></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 147px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r1 value=6> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 157px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r1 value=3> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 161px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r1 value=0> </span></p></td>
</tr>
<tr><td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 294px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"> 허리와 손발이 잘 차가워진다</span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 137px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r2 value=14></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 147px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r2 value=9> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 157px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r2 value=5> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 161px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r2 value=0> </span></p></td>
</tr>
<tr><td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 294px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);">숨이 차고 가슴이 두근거린다</span><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 137px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r3 value=12></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 147px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r3 value=8> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 157px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r3 value=4> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 161px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r3 value=0> </span></p></td>
</tr>
<tr><td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 294px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);">잠들기가 어렵고 잘 깬다</span><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 137px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r4 value=14></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 147px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r4 value=9> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 157px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r4 value=5> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 161px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r4 value=0> </span></p></td>
</tr>
<tr><td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 294px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);">화가 잘 나고 초조하다</span><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 137px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r5 value=12></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 147px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r5 value=8> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 157px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r5 value=4> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 161px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r5 value=0> </span></p></td>
</tr>
<tr><td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 294px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);">사소한 일에 걱정이 잘 생긴다</span><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 137px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r6 value=7></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 147px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r6 value=5> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 157px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r6 value=3> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 161px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r6 value=0> </span></p></td>
</tr>
<tr><td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 294px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);">두통, 어지러움, 메스꺼움이 잦다</span><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 137px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r7 value=7></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 147px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r7 value=5> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 157px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r7 value=3> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 161px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r7 value=0> </span></p></td>
</tr>
<tr><td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 294px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"> 쉽게 피곤해진다</span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 137px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r8 value=7></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 147px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r8 value=4> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 157px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r8 value=2> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 161px; height: 18px; background-color: rgb(246, 248, 250);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r8 value=0> </span></p></td>
</tr>
<tr><td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 294px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;" align="center"><span style="font-size: 12pt; font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"> 어깨결림, 요통, 손발의 통증이 있다</span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 137px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r9 value=7></span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 147px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r9 value=5> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 157px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r9 value=3> </span></p></td>
<td style="padding: 3px 4px 2px; border-bottom: 1px solid rgb(235, 235, 235); color: rgb(61, 118, 171); width: 161px; height: 18px; background-color: rgb(255, 255, 255);" class=""><p style="text-align: center;"><span style="font-family: 나눔고딕, NanumGothic; color: rgb(0, 0, 0);"><input type=radio name=r9 value=0> </span></p></td>
</tr>
</tbody>
</table><p><br>
<input type=button onclick=chk() value="결과확인">
<div id=d></div>
</form>
<script>
qs=10;
a=new Array();
function chk(){
cnt=new Array();
count=0;
for(var i=0;i<=document.f.elements.length-1;i++){
if(document.f.elements[i].type=='radio'&&document.f.elements[i].checked){
idx=String(document.f.elements[i].name).substr(1,String(document.f.elements[i].name).length);
cnt[idx]=parseInt(document.f.elements[i].value);
count++;
} else {
}
}
if(count!=qs){
alert('모든 항목에 체크를 해주세요');
} else {
a[0]=(cnt[0]+cnt[4]+cnt[8])/3;
a[1]=(cnt[1]+cnt[3]+cnt[5]+cnt[7]+cnt[9])/5;
a[2]=(cnt[2]+cnt[6]+cnt[10])/3;
document.getElementById('d').innerHTML="1,3,9 평균="+Math.round(a[0])+"<Br>";
document.getElementById('d').innerHTML+="2,4,6,8,10 평균="+Math.round(a[1])+"<Br>";
document.getElementById('d').innerHTML+="3,7,12 평균="+Math.round(a[2])+"<Br>";
}
}
</script>
아랫부분은 어떤 분이 만들어 놓은거 따다 쓴거라 약간 수정해서 해보려고 하는데 잘 안되네요.
제가 html 코딩 전허 모릅니다.
각각 라디오버튼 제크한 총합만 구할 수 있으면 어떻게 해볼 것 같은데요.
어떻게 수정해야 할까요?
완전 까막눈이라 정말 모르겠습니다.
미리 감사드립니다.