How to manually assemble jQuery sequence?

I have two jQuery objects:

var one = $("#one"); var two = $("#two"); 

And I'm looking for a way to compile another jQuery object, for example:

 var oneAndTwo = $(one, two); // pseudo-function 

So I could work with him, as I get them with $("#one, #two") .

Thanks.

+4
source share
1 answer

The solution uses add() :

 var oneAndTwo = one.add(two); 
+8
source

All Articles