I\'m trying to build a simple navigation mechanism between multiple input fields using jQuery. The first part of the code, skipping down by using the down arrow or return ke
change if (event.keyCode == 13 || 40) {... to if (event.keyCode == 13 || event.keyCode == 40) { ...
if (event.keyCode == 13 || 40) {...
if (event.keyCode == 13 || event.keyCode == 40) { ...
This blog will help you.
demo page
http://jqdev.blogspot.in/2012/01/traverse-cursor-through-text-box-with.html