WEB/HTML,CSS
HTML - Form 태그, Input 태그 자동완성 해제하기
Park.S.W
2019. 9. 6. 23:06
반응형
HTML5의 경우 입력창의 데이터를 자동완성 해주는 기능이 탑재되어 지원됩니다.
반대로 자동완성을 끄고 싶은 경우가 있는데 이러한 경우 autocomplete="off" 처리를 통하여
쉽게 해제 할 수 있습니다.
input태그에 처리)
<input type="tell" value="" maxlength="11" autocomplete="off"/>
또 해당하는 input 타입의 태그들이 form태그 안에 있다면 form태그에 속성 처리를 통해
한번에 모든 form태그 내부 입력 창을 제어 할 수 있습니다.
form태그에 처리)
<form autocomplete="off">
<input type="text" name="name" value="" maxlength="5"/>
<input type="tell" name="phone" value="" maxlength="11"/>
<input type="tell" value="mobile" maxlength="11"/>
</form>
반응형