title: Apply CSS to multiple elements in variables
body: <p>I have this:</p>
  
  <pre><code>var $e1 = $('#e1');
  var $e2 = $('#e2');
  var $e3 = $('#e3');
  </code></pre>
  
  <p>This doesn't work:</p>
  
  <pre><code>var $all = [$e1, $e2, $e3];
  $($all).css('background', '#ff0000');
  </code></pre>
  
  <p>How should I do this, while reusing <code>$el1</code>, <code>$el2</code>, <code>$el3</code>?</p>
  
  <p>I don't want to do:</p>
  
  <pre><code>$('#e1, #e2, #e3')
  </code></pre>
  
  <p>This is probably very simple to do, but I don't know what to search for to find out.</p>