JQuery .focus()

(.focus()에서 넘어옴)

1 개요[ | ]

jQuery .focus()
  • 포커스를 주는 jQuery 메소드

2 예시[ | ]

<script src="//code.jquery.com/jquery.min.js"></script>
<script>
$(function() {
	$('#search').focus();
});
</script>

<input id='search' type='text' placeholder='Search' />

3 같이 보기[ | ]

4 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}