I\'m refactoring some code at the moment and have come across a selector:
jQuery(\"tr\",\"#ctl00_MainContent_MyUserControl\").each(function(i,row) { ... }
>
This selector selects all tr elements inside an element with id ctl00_MainContent_MyUserControl. It is exactly the same as your second example.
The second parameter provides a context for the first parameter. There are better use cases for this syntax, for example:
function(el) {
$('tr', el).each(...);
}
Where el is some element on your page. In this case, you can't use the second syntax form.