Using JQ to write the most basic fade-in and fade-out effects jQuery is a JavaScript library, that is, JavaScript extensions, used to meet the increasing demand for different special effects. The essence is JavaScript.
Next we will compile a basic JQ program to illustrate JQ.
I. Basic Objectives
There are three buttons in the webpage. One button can only hide text, and the other can only show text. The other button can hide and show text at the same time. Click Show and click hide to show the text without limit.
Ii. Production Process
1. First, you need to download a JQ support file from the JQ official website and put it in your site folder. The Supported file is jQuery1.11. You can download jQuery1.11 compatible with the old browser IE6 from the official jQuery website, instead of jQuery2 compatible with the old browser ie6.
2. The entire webpage code is as follows, which is further described in parts: