Copy
<div> <form name="fsearch" method="get"> <input type="hidden" name="bo_table" value="<?php echo $bo_table ?>"> <input type="hidden" name="sca" value="<?php echo $sca ?>"> <input type="hidden" name="wr_19" value="<?php echo $wr_19 ?>"> <input type="hidden" name="sop" value="and"> <input type='hidden' name='bo_table' value="<?php echo $bo_table?>"> <input class='ed' type='' id='sdate' name='sdate' size='11' maxlength='10' itemname='시작일' value="<?php echo $sdate?>"> ~ <input class='ed' type='' id='edate' name='edate' size='11' maxlength='10' itemname='마지막일' value="<?php echo $edate?>"> <button type="submit" class="btn2 s">날짜별 검색</button> <input type="button" value="초기화" onclick="this.form.ed.value='',this.form.$sdate.value=' ',this.form.$edate.value=' ';" /> </form> </div>
초기화버튼을눌러도 초기화가안되는데 위에 소스보구 어디가틀렷는지좀 봐주세요 고수님들 ㅜㅠㅠ
답변 2개
채택된 답변
+20 포인트
블랙캣77
2017-01-13 (금) 14:27:28
<input type="button" value="초기화" onclick="fsearch.sdate.value='';fsearch.edate.value=''" />
이렇게 변경해보세요
앗 해결됬습니다!감사합니다!
답변을 작성하려면 로그인이 필요합니다.