Computer Science, asked by AnuragNayak1049, 1 year ago

How to know which key was pressed in a form input using jQuery?

Answers

Answered by omegads04
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