do a hide on two jquery variables at once (basic question)
<p>i cant seem to get this right and would like to know the exact syntax to use.</p>

<p>say i have two variables defined in jQuery</p>

<pre><code>var cat = $('#cat');
var dog = $('#dog');
</code></pre>

<p>i want for example... hide both divs.</p>

<p>i know without the vars it would be <code>$('#cat, #dog').hide();</code>
no matter how i do it with the variables i cant get it to work.</p>

<pre><code>(cat,dog).hide();
</code></pre>

<p>thanks!</p>
