/ Published in: jQuery
Use "Enter" as "Tab"
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#content_id').delegate('input[type="text"]', 'keypress', function(e){ if (e.keyCode == 13) { var l_index = $('input[type="text"]', '#content_id').index($(this)); $('input[type="text"]:eq('+(l_index+1)+')', '#content_id').focus(); return false; } });