html 포커스이동
페이지 정보
본문
<select name=\"tel\" style=\"width:58px;\" onchange=\"document.getElementById('mtel1').focus();\">
<option value=\"010\">010</option>
<option value=\"011\">011</option>
<option value=\"016\">016</option>
<option value=\"017\">017</option>
<option value=\"018\">018</option>
<option value=\"019\">019</option>
</select>
-
<input type=\"text\" id=\"mtel1\" name=\"tel1\" size=\"6\" maxlength=\"4\" onkeyup=\"if(this.value.length >=4) document.getElementById('mtel2').focus(); this.value=onlynum(this.value);\">
-
<input type=\"text\" id=\"mtel2\" name=\"tel2\" size=\"6\" maxlength=\"4\" onkeyup=\"this.value=onlynum(this.value);\">
<option value=\"010\">010</option>
<option value=\"011\">011</option>
<option value=\"016\">016</option>
<option value=\"017\">017</option>
<option value=\"018\">018</option>
<option value=\"019\">019</option>
</select>
-
<input type=\"text\" id=\"mtel1\" name=\"tel1\" size=\"6\" maxlength=\"4\" onkeyup=\"if(this.value.length >=4) document.getElementById('mtel2').focus(); this.value=onlynum(this.value);\">
-
<input type=\"text\" id=\"mtel2\" name=\"tel2\" size=\"6\" maxlength=\"4\" onkeyup=\"this.value=onlynum(this.value);\">
- 이전글javascript 숫자만입력 20.02.21
- 다음글html 라디오버튼 값처리 20.02.21
댓글목록
등록된 댓글이 없습니다.