테스트 사이트 - 개발 중인 베타 버전입니다

다음 <input type=text로 커서 옮기기

<input
type=text name=cp_no1 size=4 maxlength=4
onKeyUp="javascript:go_next( this, this.form.cp_no2);">-<input
type=text name=cp_no2 size=4 maxlength=4
onKeyUp="javascript:go_next( this, this.form.cp_no3);">-<input
type=text name=cp_no3 size=4 maxlength=4
onKeyUp="javascript:go_next( this, this.form.cp_no4);">-<input
type=text name=cp_no4 size=4 maxlength=4 >

<script language=javascript>
function go_next( cur, entity) {
if( cur.value.length >= cur.getAttribute('maxlength')) {
entity.blur();
entity.focus();
}
}
</script><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 4개

editplus에서 보니까 none1AB.htm을 찾아대면서 개체가 필요하다는 스크립트 에러를 날리는데요.^^
무슨 심오한 뜻이 계신가 봅니당,, ~~**
심오한 것이 아니고 최대한 단순한 형태라서
소개하는 의미로 적어 본 겁니다.

아마도 <form이 없어서 일수도......
예; form을 씌워주니까 에러없이 잘됩니다.

지정된 입력값이 만족되면 자동으로 다음으로 넘겨주네요,
shift+Tab가 허용되지 않는군요,

감사합니다.
순 방향은 편하지만

저 같이 역방향을 잘 타는 사람에게는 불편한 방법이죠.

Tab을 쓰는 게 낫다는 생각합니다. ^^

게시글 목록

번호 제목
11111
11108
11107
11105
11101
11099
11095
11093
24843
11065
11063
11059
29001
11054
28999
11050
28998
28956
11044
11023
11004
28946
10993
10990
28903
10984
24842
28900
10982
10978
28899
10974
10970
24831
24830
10967
10965
10963
10956
10954
10950
10946
24818
10943
28885
24813
10940
10927
10925
10920
10916
10914
10913
10908
10905
10904
10899
24803
28882
10898
28878
28877
24802
24801
24800
24799
10893
10892
24797
24794
10891
28871
28870
10881
10872
10870
28868
10868
10866
28862
10864
28861
10863
28860
10862
28859
28858
10861
10859
28856
10857
28854
10856
28853
28852
28851
10855
28850
10854
28849