0% found this document useful (0 votes)
32 views1 page

Key Next Item Navigation For Enter Next Record-from-Nur E Alam-For-DDD-60 (18-Dec-2024)

Uploaded by

tiredleshuman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views1 page

Key Next Item Navigation For Enter Next Record-from-Nur E Alam-For-DDD-60 (18-Dec-2024)

Uploaded by

tiredleshuman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

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

You might also like