title: Populating <select> dropdown with one array
body: <p>I have a list of over 100 colors in seperate <code>&lt;td&gt;</code>s. Each <code>&lt;td&gt;</code> has a unique ID. I would like to use jQuery to find the ID's of every td and put it in an array. Then I would like to use that array and create something similar to the following: </p>
  
  <pre><code>&lt;select&gt;
      &lt;option value="array[0]"&gt; array[0]&lt;/option&gt;
      &lt;option value="array[1]"&gt; array[1]&lt;/option&gt;
      ...
  &lt;/select&gt;`
  </code></pre>
  
  <p>Every example I've looked at so far requires the coder to manually type out the array. I'm hoping to find something more efficient. </p>