「jQuery入門」next().focus()でフォーカスを移動するサンプル
書式
$(this).next().focus();
使用例
$('input[name^="userId"]').keyup(function() {
//最大文字数
var maxLen = $(this).attr('maxlength');
//入力文字数
var valLen = $(this).val().length;
if(valLen >= maxLen) {
$(this).next().focus();
}
});