title: Dynamically create option elements in Javascript
body: <p>What is the preferred way in Javascript to dynamically create DOM option elements? I've found both the Option constructor and the createElement variant used in actual code like this:</p>
  
  <pre><code>var option = new Option(text, value);
  </code></pre>
  
  <p>and this:</p>
  
  <pre><code>var option = document.createElement('option');
  option.text = text;
  option.value = value;
  </code></pre>
  
  <p>Are there any drawbacks/compatibility issues with any of those methods? Also, are there any other methods to create options dynamically that should be preferred to the above for some reasons?</p>