아는 것이 좋은 것이다.

[HTML] 간단한 form 검색 기능 본문

HTML

[HTML] 간단한 form 검색 기능

start0 2014. 7. 11. 09:20

<form name="frm_search" method="post" action="">

<select style="width:80px;margin-right:10px">

    <option>광역시/도</option>

    <option>서울</option>

    <option>부산</option>

    <option>대구</option>

    <option>인천</option>

</select>

<select style="width:75px;margin-right:10px">

    <option>시/군/구</option>

    <option>강남구</option>

    <option>강남구</option>

    <option>강북구</option>

    <option>강서구</option>

</select>

<input type="txt" style="width:110px"/><a href="JavaScript: document.forms.frm_search.submit();"><span class="city_search">검색</span></a>

</form>


<input type="image" src=""> 와 <input type="submit"> 이 아닌 a태그로 간단한 전송시 사용하면 좋다.

유효성 검사 필요시 스크립트로 새로 짜서 추가하여야 한다.

Comments