For my web application, I have a selection list encoded 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>
on the settings page. this page is associated with the save.js file, where it is assumed that user input will be saved. I use HTML and JavaScript - and I don't know PHP. In my JS file, I have two functions - saveSettings and loadSettings. I am stuck on how to save it in localStorage (JavaScript) in the saveSettings function and read it back to the user in loadSettings. Any help would be greatly appreciated thanks x
user1703470
source share