JQUERY chaining

Click Here

If we have several effects to be applied to the same element, we can apply them in the order in which they appear in the same sentence JQUERY.

For example if we want to apply on <p> element effect change text color to green, sliding up in 2 seconds, and sliding down in 3 seconds.

$("p").css("color","green").slideUp(2000).slideDown(3000);

The effects are applied in the order they appear.

This can be done, if the effects are on the same HTML element.


Click Here