Simply put: the jQuery object is a composite pattern. How do I add jQuery objects to it?
An example:
var e1 = $('#element1');
var e2 = $('#element2');
...
I know want to create a new jQuery object jq such that it is composed of e1 and e2. I want to be able to do something like the following:
var jq = $();
jq.addInjQueryObjects([e1, e2]);
jq.hide();
how do I do this?
By the way, I realize that I could have just selected #element1 AND #element2 to begin with, that's not what I'm talking about.