javascript 2 elements in different variables, how to combine them? : <p>I have to variables, containing 2 different elements. I want to combine them into a single jquery selector. At the moment I have something like this:</p>

<pre><code>function getActiveElem(){
    return $('div').find('.active');
}
var elem1 = $('.elem1'),
    elem2 = getActiveElem();
</code></pre>

<p>I can't do it like this:
<code>$('div .active, .elem1')</code> because the <code>getActiveElem</code> is a little more complex than the example.
What I would like to do is this: <code>$(elem1, elem2)</code> to get both elements, but that isn't working.</p>

<p>Ultimately I want to animate these 2 items at the same time. Right now it's like this:</p>

<pre><code>elem1.animate({});
elem2.animate({});
</code></pre>

<p>And I'd like it to be </p>

<pre><code>$(elem1, elem2).animate({});
</code></pre>

<p>Is this possible? Does it even make sense? I'm animating a custom slider but there's some weird whitespace between the slides, I thought it might be because of the 2 seperate slide events.</p>
