I have a <select>
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.
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.