라디오버튼 활성화 문제 > 그누4 질문답변

그누4 질문답변

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

라디오버튼 활성화 문제 정보

라디오버튼 활성화 문제

본문

라디오 버튼을 클릭했을때 <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();">사고발생&nbsp;
      <input type="radio" name="imgNew" style="border:none" required onclick="javascript:img();">사고없음&nbsp;
      <font color="red"> (*이미지를 수정하시려면 라디오버튼을 선택하세요)</font>
    </td>
    </tr>
    <tr id="newUrl" style="display:none">
    <td colspan="3"><input type="text" name="urlImg" style="width:325px">&nbsp;</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>

이것도 좀 확인해주세요..ㅜ 부탁드립니다

댓글 전체

전체 66,554 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT