I have a select field at my HTML page that is populated with a few default items. With the help of AJAX, I replace the content (options) in the select field with appropriate options.
How can I store the contents (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.
Thanks!