The following snippet does not work.
var empty = $();
var divs = $("div");
empty.add(divs);
HTML has a div element, and it is added correctly to the div. But the collection of divs is not added to the empty jquery object. Any ideas what is wrong with this?
source
share