close

<input type="text" name="A" maxlength="2" onKeyUp="next(this,'B')" size="1"/>
<input type="text" name="B" maxlength="2" onKeyUp="next(this,'C')" size="1"/>
<input type="text" name="C" maxlength="2" onKeyUp="next(this,'D')" size="1"/>
以此類推...

<script>
function next(obj,next) {
if (obj.value.length == obj.maxLength)
obj.form.elements[next].focus();
}
</script>

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 小林 的頭像
    小林

    清水健太 Shimizu Kenta 之 人性本健

    小林 發表在 痞客邦 留言(0) 人氣()