What is chaining in jQuery?

Chaining means calling multiple methods on the same element in one line.

$("#box").css("color", "red").slideUp(1000).slideDown(1000);

Improves performance and readability.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *