Ticket #4182 (closed bug: fixed)
appendTo doesn't return inserted elements
|Reported by:||john||Owned by:|
Currently when calling appendTo (and similar methods) the original elements are returned - instead of the elements that were actually inserted. This means that code like this:
$("<p/>") .appendTo("div") .addClass("test");
Will only actually add the class to the first paragraph inserted.