My understanding is that the context should be the root level, that is, the parent in which you want to make your choice.
EDIT: After doing some reading, you should be able to map top-level context elements (the default context is document ).
Beardscratchers has a good article on using context with jQuery selectors. In general, you should try to pass the identifier of the element as the context for the jQuery wrapped set, as this is the most efficient way to locate the element.
Internally, the selector context is implemented using the .find method, so $(selector, context) equivalent to $(context).find(selector)
Russ cam
source share