/
jQuery Array Pattern

jQuery Array Pattern

It’s helpful to know a trick that jQuery uses that allows one to chain jQuery commands together.

Every call to the jQuery function returns another jQuery object that is effectively an array of the DOM elements selected by that function and wrapped up in the extended jQuery API which goes beyond what the built in native Javascript API of the browser.

Hope that is clear - will write more later if it isn’t.

Related content

Javascript Containers
Javascript Containers
More like this
Javascript Variables - Covering the core types
Javascript Variables - Covering the core types
More like this
Making DOM APIs give you plain old rectangles which you can manipulate.
Making DOM APIs give you plain old rectangles which you can manipulate.
More like this
Javascript Arrays
Javascript Arrays
More like this
Javascript Closure
Javascript Closure
More like this
Javascript Object
Javascript Object
More like this