<script type= "Text/javascript" >
$ (function () {
//hide,show,fastin,slideup,slidedown,fastout all have two parameters, One is speed, and callback
$ ("#btn1"). Click (function () {
$ ("#div1"). Hide (+);//speed velocity, no speed. No parameters
});
$ ("#btn2"). Click (function () {
$ ("#div1"). Show (//speed); speed, no speed, no velocity
});
$ ("#btn2"). Click (function () {
$ ("#div1"). FadeIn ();//speed speed, no speed, no velocity
});
$ ("#btn3"). Click (function () {
$ ("#div1"). Toggle (300);//Toggle Hide (), show ()
});
$ ("P"). Click (function () {
$ ("P"). Slideup ("Fast", function () {///has two parameters, a speed velocity, an animation executes the functions after the
alert ("111" );
});
$ ("P"). Slideup (+);
});
$ ("#btn1"). Click (function () {
$ ("#btn1"). Slidedown (());}
);
</script>
The simple jquery code that was used above
<input type= "button" value= "Buttons 1" id= "btn1"/><input type= "button" value= "button 2" id= "btn2"/><input type= " Button "value=" Buttons 3 "id=" Btn3 "/>
<div id=" Div1 "> FDSADDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDFD Strange strong dreams of dreaming of the flowers fall off This accounting </div> <p> dreams of Dreaming