Turning Learners Into Developers
Codekilla
CODEKILLA
back to course
Lesson 10 / 8711%
jQuery Syntax4/4

jQuery Chaining

Every jQuery method returns the jQuery object — chain them.

// every call returns the jQuery object — chain forever$('#box')select.addClass('active')DOM.css('color','white')CSS.slideDown(200)effect.fadeOut(400)effect// return value after every call:jQuery({ 0: <div#box>, length: 1, prevObject: … })
Visual explanation diagram · click steps to walk through it

This lesson is Pro only.

Unlock every premium lesson and module — Pro from ₹299 / month (or ₹999 / year, saves ~₹2,589).

Sign in to unlock
// feedback.matters()
Did this lesson help you?