Home  >  Article  >  Web Front-end  >  jquery press enter event on keyboard_jquery

jquery press enter event on keyboard_jquery

WBOY
WBOYOriginal
2016-05-16 16:48:481166browse

Next we use Jquery to implement the Enter key to switch focus. This code has been tested in common browsers IE7, IE8, Firefox 3, Chrome 2 and Safari 4.
The development tool used is Microsoft VS2010 Jquery framework

The implementation steps are as follows

1. First reference the Jquery class library

2. Javascript code

Copy code The code is as follows: