input 박스에 maxlength 만큼 입력했을 때 자동으로 다음 박스로 이동하기 > jquery

본문 바로가기

jquery

input 박스에 maxlength 만큼 입력했을 때 자동으로 다음 박스로 이동하기

작성일 19-12-10 17:33

페이지 정보

작성자서방님 조회 232회 댓글 0건

본문

<script type="text/javascript">
<!--
$(".input_box").keyup(function() {
	if (this.value.length == this.maxLength) {
		$(this).next(".input_box").focus();
	}
});
//-->
</script>

댓글목록

등록된 댓글이 없습니다.

게시물 검색
Copyright © 서방님.kr All rights reserved.
PC 버전으로 보기