I put this in the head:
Code:
window.onload = function() {
var aboutSetup1 = localStorage.getItem('aboutSetup1');
formTesting.testingSetup.option[formTesting.testingSetup.option.length] = new option(aboutSetup1, aboutSetup1);
var aboutSetup1 = localStorage.getItem('aboutSetup1');
formTesting.testingSetup.options[formTesting.testingSetup.options.length] = new Option(aboutSetup1, aboutSetup1);
}
and the select section is now:
Code:
<script type="text/javascript">
var aboutSetup1 = localStorage.getItem('aboutSetup1');
formTesting.testingSetup.options[formTesting.testingSetup.options.length] = new Option(aboutSetup1, aboutSetup1);</script>
<select size="1" name="testingSetup" id="testingSetup" onchange="document.formTesting.testingSetupLoad.value = this.value">
<option value="">choose setup</option>
<option value="setup 1">setup 1</option>
<option value="setup 2">setup 2</option>
</select>
Google tools says, "Uncaught TypeError: Cannot read property 'options' of undefined"
Bookmarks