$(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
Statement: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