javascript submit form with tab key
jQuery.noConflict();
(function ($) {
$(document).ready(function(e) {
let baseForm = $("#FORM_ID"); //Enter Form's ID
//Enter Input's ID
baseForm.on("keydown", "#INPUT_ID", function(evt){
let charCode = evt.keyCode || e.which;
// If ENTER(13) or TAB(9) entered, submit form
if(charCode === 9 || charCode === 13){
evt.preventDefault();
baseForm.submit();
}
});
});
})(jQuery);
Also in JavaScript:
- sum of number using reduce
- node eslint
- http request javascript fetch
- js library for checking if two shapes overlap
- javascript truthy
- how to run node js on mac
- jest tranform image
- update one component from another component angular 9
- react js materilize
- push object into array javascript
- json parsing techniques
- regex to check if string contains special characters javascript
- cannot find name json angular 7
- add slashes to string
- javascript access pushed element
- jquery delete grand parent of clicked element
- javascript object filter
- js set value in object only if defined
- jquery modal on show + target button
- js wait for time
- express js list all routes
- how to add two numbers in javascript
- model mongoose
- encode url javascript