Today it is easy to learn the use of the basic functions of jquery.
First write a button to do control, and then write a div with a button control IdV do animation, thus testing the animation function of jquery
The next step is to use the jquery function in the script.
<script type= "Text/javascript" >$ (function () {$ ("button"). Click (function () {$ ("div"). Hide ();})}) </script>
Clicking on the button above will cause the div to disappear.
$ ("div"). Show ();
Clicking the button when using the show () method causes the div to show
But the jquery object. The toggle () syntax is the same as show () and Hide (), and is simple and is a mutually exclusive method of show () and hide ().
$ ("div"). Toggle ()
Toggle is mutually exclusive with show () and hide () if it is hidden, the display is hidden if it is displayed.
We can also add an excess to it.
jquery Basic animation Toggle ()