How to know which key was pressed in a form input using jQuery?
Answers
Answered by
0
The “enter” key is represent by code “13”, check this ASCII charts. To check if an “enter” key is pressed inside a textbox, just bind the keypress() to the textbox. To check if an enter key is pressed on page, bind the keypress() to the jQuery $(document) .
Similar questions