<input class="input" type="text" maxlength="4" />
<input class="input" type="text" maxlength="4" />
$(document).ready(function () {
    $('.input').live("keyup", function (e) { 
        if ($(this).val().length > 3) {
            $(this).next('.input').focus();
        }
    });
});