When we click enter key, when can foucs to next item automatically.
$('body').on('keydown', 'input, select, textarea', function (e)
{
var self = $(this),
form = self.parents('form:eq(0)'),
focusable,
next;
// "ENTER" key code is 13.
if (e.keyCode == 13)
{
focusable = form.find('input, a, button, select, textarea').filter(':visible');
next = focusable.eq(focusable.index(this) + 1);
if (next.length)
{
next.focus();
}
else
{
next.submit();
}
return false;
}
});