프리랜서 웹디자이너 웹퍼블리셔RELATION

RELATION 로고

홈페이지 소스

[CSS] input에서 Tab키로 순차적 focus이동하기

2018.07.11
북마크 [출처 이동]    작성자 정보
연속된 input박스가 있을 때,
Tab키를 누르면 다음 input박스로 이동이 가능하게 하고싶다!


tabIndex
<div class="login-wrap">
<input type="text" tabIndex="1" placeholder="아이디를 입력해주세요"/>
<input type="password" tabIndex="2" placehoder="패스워드를 입력해주세요"/>
</div>

이 포스트 공유하기

전체목록