You can add elements to a jQuery object using a function add. addaccepts a selector (adds matching elements), a raw DOM element (adds it), an HTML snippet (creates an element and adds them), and a jQuery object (adds all elements in it). The latter probably matches what you are looking for.
source
share