cycling jQuery_Succinctly | Page 46

})(jQuery); Difference between selecting direct children vs. all descendants Direct children elements only can be selected by using the combiner > or by way of the children() traversing method. All descendants can be selected by using the * CSS expression. Make sure you clearly understand the difference between the two. The example below demonstrates the differences. Sample: sample34.html

text

text

Selecting direct child elements when a context is already set It is possible to use the combiner > without a context to select direct child elements when a context has already been provided. Examine the code below. 46