라디오버튼으로 입력한 내용 없애기
아래의 내용에서 아니오에 체크를 할 경우
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>
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 3개