jquery shows several ways to hide dynamic effects

Source: Internet
Author: User

<script type= "Text/javascript" >
$ (document). Ready (function () {
/*$ ("#test1"). Click (function () {
$ ("#test2"). Toggle ("Fast", function () {

});
});*/
/* $ ("#test1"). Click (function () {
$ ("#test2"). Toggle (5000,function () {

});
}); */
/* $ ("#test1"). Toggle (function () {
$ ("#test2"). Show (5000,function () {});
},function () {
$ ("#test2"). Hide (5000,function () {});
}); */

/* $ ("#test1"). Click (function () {
$ ("#test2"). Slidetoggle ("slow");
});
*/

$ ("#test1"). Toggle (function () {
$ ("#test2"). FadeTo (1000,0.3); Transparency
},function () {
$ ("#test2"). FadeTo (1000,0);
});
});

</script>

<style type= "Text/css" >

</style>

<body>
<div>
<ul>
<li id= "Test1" > What is jquery?</li>
<ul id= "test2" style= "Display:none;" >
<li style= "width:200px; ">
jquery is another excellent JavaScript library following prototype.
It is a lightweight JS library, it is compatible with CSS3 and also compatible with various browsers
(IE 6.0+, FF 1.5+, Safari 2.0+,
Opera 9.0+), jQuery2.0 and subsequent versions will no longer
Support Ie6/7/8 Browser.
</li>
</ul>
</ul>

</div>
</body>

jquery shows several ways to hide dynamic effects

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.