Home  >  Article  >  Web Front-end  >  jQuery implements binding click events when the Enter key is pressed_jquery

jQuery implements binding click events when the Enter key is pressed_jquery

WBOY
WBOYOriginal
2016-05-16 17:01:481059browse

When the Enter key is pressed, the bound button click event code is as follows. By detecting the pressed key value, the Enter key keycode is 13, determine whether it is the Enter key, and then complete the corresponding method.

Copy code The code is as follows: