$(".yhjuan").keydown(function(event){
var num=event.keyCode;
if(num!=8){
if($(this).val().length==4){
$(this).next().focus();
}
}else{
if($(this).val().length==0){
$(this).prev().focus();
}
}
});
谢谢支持,多少都行