I am just going through some backbone tutorials and I have a general jQuery question that I have actually been wondering for a while.
Sometimes I see calls with a second parameter in the jQuery selector, for example $('ul', this.el).
What is the purpose of this second param in the selector? And I don’t really mean in context of any backbone examples, just in general what is the purpose of passing the second param in the selector and why is it always an object that is passed there? I can’t find any documentation on this.
It narrows the search for a
ultag within your view component’s DOM element.