Skip to content

Instantly share code, notes, and snippets.

@matthewmorrone
Created December 12, 2019 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewmorrone/7de2a1ff694cff5f720f4c033697c928 to your computer and use it in GitHub Desktop.
Save matthewmorrone/7de2a1ff694cff5f720f4c033697c928 to your computer and use it in GitHub Desktop.
$(function() {
$("input").keyup(function(e) {
if ($(this).val().length >= 3 && e.which >= 48 && e.which <= 57) {
$(this).next('input').focus();
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment