0 votes
in JQuery by
What is the method chaining in jQuery, and what are the advantages?

1 Answer

0 votes
by

With chaining, multiple jQuery commands on a particular element can be executed in one go. It helps in implementing various actions on an element at once rather than executing them one after the other.

$("#h2").css("color","blue").animate((left: '100px'}).slideDown(1000);

...