I have some jquery elements:
var elem1 = $("#elem1");
var elem2 = $("#elem2");
var elem3 = $("#elem3");
I need to create a jquery array (list) of these elements, just like having
var allElements = $("#container").children("div");
How can i do this?
Use
.add()method which adds elements to the set of matched elements.