Js, how to realize the keyboard events press enter equal to press a key on the keyboard other
CodePudding user response:
Add a onkeydown, events in writing if judge if the event keycode=13 put other keycode key assigned to the current event. The keycode
CodePudding user response:
//in jquery reads
$(" # clientorderlist input "). The keydown (function (event) {
If (event. The keyCode==13) {
//TODO
}
});
CodePudding user response: