I\'ve got four inputs that each take one number. What I want to do is set the focus automatically to the next input once the number has been set. They all have the class \"i
This will keep focus on the text box, after using next without naming the class or id.
$(this).hide(); $(this).next().show(); $('input[type=text]').focus();