$ ("li: even", obj)
In the above expression, context is passed to the selector. This is equal to $(this).find("li:even");
According to jQuery documentation, syntax for jQuery selector (selector [, context])
All four will have the same result.
var obj = $(this); $("li:even", obj)
or
$("li:even", this)
or
$("li:even", $(this))
or
$(this).find("li:even");
source share