title: How to store the contents of select box to a variable?
body: <p>I have a <code>&lt;select&gt;</code> field on my HTML page that is populated with a few options. With the help of AJAX, I replace those options in the select field with more appropriate options.</p>
  <p>How can I store the options of my select field into a variable and then load it into the select again? It would be helpful to be able to get back the default options of the select field in some cases.</p>