<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