javascript submit form when enter key pressed
//submit form when 'Enter' key is pressed while in myInputID
document.getElementById("myInputID").addEventListener("keyup", function(event) {
if (event.keyCode === 13) {
document.getElementById("myFormID").submit();
return false;
}
});
Also in JavaScript:
- fetch download blob file
- big o theory
- react image upload component
- extension for local storage in angular 8
- javascript increment
- moment duratuion from hours
- group by in javascript
- js conditional object key
- How to Manage Text Input and Output with JavaScript for HTML5 and CSS3 Programming
- jquery select element with data
- identify chrome on android using javascript
- drupal tag filter ajax content
- random item from array javascript
- js string template decimals
- get current directory vbscript
- angular file upload app with django
- how to import jquery in js file
- link stylesheet in javascript
- geoJson
- js query string
- jquery give control focus
- hot to start cypress
- scoll a div to bottom in angular
- javascript remove object key