When you select elements using jQuery using the jQuery function (or its $ alias) you can provide the context as well as the selector, as described here .
What it is: select each element that matches the CSS selector provided in this context , with context , which means the DOM region that you have already selected.
In other words, it says: use context as the root of the DOM tree you are looking for, as opposed to the root of the document.
source share