title: Hiding a Javascript Array with jQuery
body: <p>Right now I have a function that looks like this:</p>
  
  <pre><code>function hidearray() {
      $('#one, #two, #three').hide();
  }
  </code></pre>
  
  <p>I'd like to put those IDs into 1 array, which would look like</p>
  
  <pre><code>var myArray['one', 'two', 'three'];
  </code></pre>
  
  <p>And then hide that array within my function hidearray().  I thought it would look like this, but I guess I'm on the wrong track (I also know I ignored the # in the statement below)</p>
  
  <pre><code>$(.each(myArray)).hide();
  </code></pre>
  
  <p>The solution is likely simple, so thank you to all that respond!</p>