$(“input”).keydown(function(event){
if (event.keyCode == 13) {
/* Submit or other operations */
}
});
Reprinted at: https://ift.tt/zLJg5Y6
…
The post JS – Input input box click enter to submit or do something else first appeared on Lenix Blog .
This article is reprinted from https://blog.p2hp.com/archives/9332
This site is for inclusion only, and the copyright belongs to the original author.