I do have a credit card number form. The number is divided into four parts just as on a real credit card.
I want to add a JavaScript taste to the form where when a u
I haven't tested it, but I think this will work. It will probably also move the focus to the button when the 4th field is completed.
$("form input").change(function () { var maxLength = $(this).attr('maxlength'); if($(this).val().length == maxLength) { $(this).next().focus(); } }