Teacher: Muhammad Nur E Alam, nurealam.rajjak@gmail.
com WhatsApp: +8801917975575
Key Next Item
Go to Page Property:
==================
JavaScript Group:
------------------------
Execute when Page Loads:
$(
'body').on('keydown', 'input, select, textarea', function(e) {
var self = $(this)
, form = self.parents('form:eq(0)')
, focusable
, next
;
if (e.keyCode == 13) {
focusable = form.find('input,select,textarea,tabindex').filter(':visible');
next = focusable.eq(focusable.index(this)+1);
if (next.length) {
next.focus();
} else {
form.submit();
}
return false;
}
});
$(
'body').on('keydown', 'input, select, textarea', function(e) {
var self = $(this)
, form = self.parents('form:eq(0)')
, focusable
, next
;
if (e.keyCode == 13) {
focusable = form.find('input,select,textarea,tabindex').filter(':visible');
next = focusable.eq(focusable.index(this)+1);
if (next.length) {
next.focus();
} else {
form.submit();
}
return false;
}
})
@@@@@@@@@@@@@ End @@@@@@@@@@@
Page 1 of 1
Youtube Channel: https://www.youtube.com/channel/UCIuePiQ8lvB6hLmBBJHfDhw