Home  >  Article  >  Web Front-end  >  JQuery small exercises (example code)_jquery

JQuery small exercises (example code)_jquery

WBOY
WBOYOriginal
2016-05-16 18:48:341345browse

1. The button counts down for 10 seconds before you can click it. This effect is generally used when registering in some forums. Without further ado, just enter the code:

Copy the code The code is as follows:













2. Change it with just one click. This effect was so cool when I didn’t learn jquery more than a month ago. Now I think it is actually very simple. You can see the effect of jquery on the front-end. It greatly simplifies the difficulty of writing. The code is as follows:
Copy the code The code is as follows:











Just click change!






The above code Just copy it directly to the html file, and make sure there is no error in importing the jquery.js file, and you can run it.
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