title: Add attributes to <option> from javascript
body: <p>I have this piece of JS:</p>
  <pre><code>for(var index in response.rates) {
      select.options[select.options.length] = new Option([index], index);
  }
  </code></pre>
  <p>It generates the  and  tags populated with an array.</p>
  <p>How can I give attributes to  from there? Like onselect and and other things.</p>