I have some textboxes on a .net-page and want to achieve the following with jQuery: if the user presses return, the program should behave \"as if\" he had used the tab key,
Try this:
http://jsbin.com/ofexat
$('.tg').bind('keypress', function(event) { if(event.which === 13) { $(this).next().focus(); } });
or the loop version: http://jsbin.com/ofexat/2