라디오버튼 활성화 문제

· 2011-07-06 (수) 09:48:33 · 1026
라디오 버튼을 클릭했을때 <tr>부분이 활성화 되는건데요....

글을 쓰고 나면 존재하지 않는 게시판 입니다. 라고 뜨네요..

이유가 뭘까요??

====소스====

<FORM onload=document.f.t0.disabled=true name=f><INPUT onclick=this.form.t0.disabled=false type=radio CHECKED name=r_1>하단부 기재요망</FORM></td>
<script language="JavaScript">
function img(){
var fn = document.editForm;
if(fn.imgNew[0].checked==true){
document.all.newUrl.style.display="none";
document.all.newFile.style.display="";
}else{
document.all.newUrl.style.display="none";
document.all.newFile.style.display="none";
}
}
</script>

<form name=editForm>
<table cellspacing="1" width="100%" bordercolor="#f9f9f9" cellpadding="4" bgcolor="#EAEAEA">
<tr>
<td bgcolor="#F7F7F7" width="15%" align="center"><b>사고발생현황<b></td>
<td colspan="3">
<input type="radio" name="imgNew" style="border:none" required onclick="javascript:img();">사고발생 
<input type="radio" name="imgNew" style="border:none" required onclick="javascript:img();">사고없음 
<font color="red"> (*이미지를 수정하시려면 라디오버튼을 선택하세요)</font>
</td>
</tr>
<tr id="newUrl" style="display:none">
<td colspan="3"><input type="text" name="urlImg" style="width:325px"> </td>
</tr>
<table id="newFile" border ="1" style="display:none" cellspacing="1" width="100%" bordercolor="#f9f9f9" cellpadding="4" bgcolor="#EAEAEA">
<tr>
<td width="135" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">발 생 일 자</p>
</td>
<td width="109" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">성 명</p>
</td>
<td width="97" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">직 업</p>
</td>
<td width="139" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">최초소견서상</p>
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;">치료예상기간</p>
</td>
<td width="442" height="34">
<p align="center" style="line-height:100%; margin-top:0; margin-bottom:0;"> 내 용</p>
</td>
</tr>
</table>
확인좀 부탁드립니다..ㅠㅠ

1가지더...ㅜㅜ
위스크립트에서 아래 소스 부분을 빼버리니까 스크립트작동이 않되네요...
<FORM onload=document.f.t0.disabled=true name=f><INPUT onclick=this.form.t0.disabled=false type=radio CHECKED name=r_1>하단부 기재요망</FORM>

이것도 좀 확인해주세요..ㅜ 부탁드립니다
|
댓글을 작성하시려면 로그인이 필요합니다.

그누4 질문답변

66,531건

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기 기존 게시물은 열람만 가능합니다.

+
제목 글쓴이 날짜 조회
11-07-06 조회 1,067
11-07-06 조회 1,312
11-07-06 조회 1,700
11-07-06 조회 1,520
11-07-06 조회 1,370
11-07-06 조회 1,333
11-07-06 조회 1,078
11-07-06 조회 1,637
11-07-06 조회 1,720
11-07-06 조회 1,066
11-07-06 조회 872
11-07-06 조회 1,027
11-07-06 조회 1,047
11-07-06 조회 921
11-07-06 조회 1,080
11-07-06 조회 1,646
11-07-06 조회 1,650
11-07-06 조회 1,070
11-07-05 조회 1,261
11-07-05 조회 1,707