Home > Web Front-end > JS Tutorial > jquery multi-browser capture enter event code_jquery

jquery multi-browser capture enter event code_jquery

WBOY
Release: 2016-05-16 18:24:40
Original
1129 people have browsed it
Copy code The code is as follows:

$(document).keydown(function(event) {
if (event.keyCode == 13) {
$('form').each(function() {
//Your code to run
});
}
});

But it still doesn’t work in Opera. I’m so incompetent that I blocked the carriage return event in a fit of anger



This may not be good for some functions. But I just hope it helps some people.
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template