Key Next Item by Pressing Enter Button Oracle Apex
Key Next Item by Pressing Enter Button Oracle Apex
Topic Introduction: User used to press ENTER Button to go to next item but In Oracle Apex by Default use Tab Button to go to next item and ENTER Button use to Submit to press button. In this case in we want to change the key next item to ENTER Button we need write JavaScript to change default option. lets follow this code bellow.
1. Go to Page Properties
i. JavaScript> 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;}});
No comments