title: How do I store multiple jQuery selectors in a javascript variable?
body: <p>Obviously it's a good idea to store jQuery selectors in variables if they are used more than once (<em>not</em> a good idea if used only once).</p>
  
  <p>My question is, how do you store multiple selectors, that are used interchangeably, in a variable.</p>
  
  <p>For instance, let's say I select <code>$('#object1, #object2)</code>, then later on I select `$('#object1'). How would I create a variable that can be combined with other variables to create multiple selectors.</p>
  
  <p>If I were to write it like this:</p>
  
  <pre><code>var object1 = "#object1";
  var object2 = "#object2";
  
  $(object1  + "," + object2);
  </code></pre>
  
  <p>I would only be referencing the string <code>#object1</code>, and not the actual selector.</p>
  
  <p>So how do I store multiple selectors in variables, so they can be used interchangeably?</p>