Home >Web Front-end >JS Tutorial >The default enter event (carriage return event) of button based on jquery. _jquery

The default enter event (carriage return event) of button based on jquery. _jquery

WBOY
WBOYOriginal
2016-05-16 18:06:401055browse

It is hereby stated that the code is completed through jquery. I wrote the actual column code myself, and it is completely achievable. Just copy it and you can use it, but you must import the jquery package. There is a way to support IE and Firefox, it will definitely work. When I was working on it, I found some codes online, and basically none of them supported Firefox. Okay, enough nonsense has been said. Start the code demonstration. Everyone is welcome to correct errors and provide technical advice, thank you.

Copy code The code is as follows:




The enter event supported by both Firefox and IE


< /head>






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