I've currently got a select box named selectGameDates on a page who's options are loaded from a JSON call. When an option is selected, I store the value in a local storage variable called gameDate. I then reload the page and pass that new date into the JSON service. This all works fine except that I can't figure out how to get the chosen option to be the selected option when the page refreshes. Currently I'm trying to select the correct option by running this JS on the page load:
Appery("selectGameDates").val(localStorage.gameDate);
Appery("selectGameDates").selectmenu('refresh');
Any ideas?