您的位置:首页 > Web前端 > JQuery

关于jquery页面自动跳转的问题

2012-01-16 17:05 344 查看
<div id="BellPhone">
<br>
<span id="PortInPstnLabel">住址电话:</span>
<input id="BellPhone1" type="text" style="width: 32px;" size="3" maxlength="3" name="BellPhone1" class="bell" >-
<input id="BellPhone2" type="text" style="width: 32px;" size="3" maxlength="3" name="BellPhone2" class="bell">-
<input id="BellPhone3" type="text" style="width: 40px;" size="4" maxlength="4" name="BellPhone3" class="bell">
</div>
$(".bell").keyup(function () {

var length = $(this).val().length;

if (length == "3") {

$(this).next(".bell").focus();

}

})
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: