This is because the first one is not a jquery object:
var $elts = (".c", $html);
Execution (".c", $html)will mean that var will be equal to the last value inside the bracket, which is the jQuery $ html object.
Test it try
var $elts = ('anything', 4);
console.log($elts)
if you do var $elts = $('.c', $html), both logs will be the same:
http://jsfiddle.net/L3dTK/5/
source
share