title: input an array of id's into a jquery selector
body: <p>So I'm trying to input an array into a jquery selector and for some reason I can't get it to work at all. I've tried a few approaches below
  1st:</p>
  
  <pre><code>var id = ["#id1", "#id2", "#id3"];
  $(id[0]).css('color', '#000');
  </code></pre>
  
  <p>my other attempt:</p>
  
  <pre><code>var id = [];
  for(var x = 0;x &lt; 3; x++){
  id[x] = x;
  $("#id"+id[0]).css('color', '#000');
  }
  </code></pre>
  
  <p>So I'm wondering what might be the approach to solving this?</p>
  
  <p>example of what I'm using this for:</p>
  
  <pre><code>for(var x = 0;x &lt; 28; x++){
  function randomizerlet(){
  randlet[x] = Math.floor(Math.random()*156);
  timesletrun[x] += 1;
  if (masterlet[randlet[x]] == letter[x]){
  $('#flipL4_1').css('background-position', masterlet[randlet[x]]);
  clearInterval(intervallet[x]);
  }
  else{
      if(timesletrun[x] == 300){
          masterlet[randlet[x]] = letter[x];
          $('#flipL4_1').css('background-position', masterlet[randlet[x]]);
          clearInterval(intervallet[x]);
          }
      else{
          $('#flipL4_1').css('background-position', masterlet[randlet[x]]);
          }}
  
  
          }
  var intervallet[x] = setInterval(function() {
   randomizerlet();}, 10);
  }
  </code></pre>