Skip to content

Instantly share code, notes, and snippets.

@tluyben
tluyben / gist:4168379
Created November 29, 2012 11:30
JQuery enter as tab
$(function(){
$('input').live('keypress', function(eInner) {
if (eInner.keyCode == 13)
{
var el = null; // element to jump to
// if we have a tabindex, just jump to the next tabindex
var tabindex = $(this).attr('tabindex');
if (tabindex) {
tabindex ++;