title: Looping Through an Array of Elements and Adding a Class
body: <p>I'm trying to loop through an array of elements and add a class to each.</p>
  <pre><code>var elements = [ '#element1', '#element2' ];
  
  $( elements ).each(function() {
    $( this ).addClass( &quot;myClass&quot; );
  });
  </code></pre>
  <p>Nothing happens. What am I doing wrong? The elements exist. I get no error message.</p>