Use "Enter" as "Tab"

$('#cad_lancamentos').delegate('input[type="text"]', 'keypress', function(e){ if (e.keyCode == 13) { var l_index = $('input[type="text"]', '#cad_lancamentos').index($(this)); $('input[type="text"]:eq('+(l_index+1)+')', '#cad_lancamentos').focus(); return false; } });

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.