cycling jQuery_Succinctly | Page 32
It is possible to determine the context in which the jQuery function is performing a DOM query
by using the context property. Below I show two coded examples of retrieving the value of the
context property.
Sample: sample20.html
Creating entire DOM structure, including DOM events, in a single
chain
By leveraging chaining and jQuery methods, you can create not only a single DOM element, but
entire DOM structures. Below I create an unordered list of jQuery links that I then add to the
DOM.
Sample: sample21.html