I do not know what your selector is, but if you need to select all the inputs (enter the text). You can try this.
$(function(){ $(':input').each(function(){ $(this).keypress(function(){ $(this).next('input[type=text]').val('I\'m the next'); })
So, no matter where you invest more resources, you can always take them.
source share