For my web app I have a selection list coded as below;
<select name = 'job' id = 'job'>
<option value = 'jobselect'>Select Profession</option>
<option value = 'job1'>Mechanical Engineer</option>
<option value = 'job2'>Software Engineer</option>
<option value = 'jobother'>Other</option>
</select>
in the settings page. this page is linked to a 'save.js' file where the user input is supposed to be saved. i am using HTML and JavaScript - and no knowledge of PHP. In my JS file i have two functions - saveSettings and loadSettings. i'm stuck as to how to save it to localStorage (JavaScript) in the saveSettings function and reading it back to the user in the loadSettings. Any help would be much appreciated thanks x