라디오버튼으로 입력한 내용 없애기 정보
라디오버튼으로 입력한 내용 없애기본문
아래의 내용에서 아니오에 체크를 할 경우
wr_36에 입력한 내용이 있으면 내용이 없어지게 할 수 있나요??
도와주세요^^
---------------------------------------------------------------
<input type="radio" id="radio" name="wr_35" value="예" <? if($write[wr_35] == "예") echo "checked"; ?> />
<label for="radio" hidefocus="hidefocus">예</label>
(문제 : <input name="wr_36" type="text" class="ed" id="wr_36" style="width:350;" value="<?=$write['wr_36']?> " />)<input type="radio" id="radio" name="wr_35" value="아니오" <? if($write[wr_35] == "아니오") echo "checked"; ?> />
<label for="radio" hidefocus="hidefocus">아니오</label>
wr_36에 입력한 내용이 있으면 내용이 없어지게 할 수 있나요??
도와주세요^^
---------------------------------------------------------------
<input type="radio" id="radio" name="wr_35" value="예" <? if($write[wr_35] == "예") echo "checked"; ?> />
<label for="radio" hidefocus="hidefocus">예</label>
(문제 : <input name="wr_36" type="text" class="ed" id="wr_36" style="width:350;" value="<?=$write['wr_36']?> " />)<input type="radio" id="radio" name="wr_35" value="아니오" <? if($write[wr_35] == "아니오") echo "checked"; ?> />
<label for="radio" hidefocus="hidefocus">아니오</label>
댓글 전체

라디오 버튼은 필드 하나만 이용하면 됩니다. 1 일때 예 , 0 일때 아니오 이런식 으로요
죄송한데 프로그램쪽은 잘 몰라서요, ㅜㅡ 풀어서 부탁드립니다..^^;;

<label for="radio" hidefocus="hidefocus" onClick="this.form.wr_36.value='';" >아니오</label>