hi, Im first populating a selectmenu from a json list, then i want to store the value the user selected in local storage, then i want to use that value to send back to the server along with other elements. I'm using the following codes:
This code to grab from the json response and store the value:
Code: Select all
localStorage.setItem('id',g); And this code to send back to the server:
Code: Select all
var g=localStorage.getItem('id'); Are these the right codes to do this?
see below for snapshots:
This is the Resulting Page, its now not even loading the select menu anymore, its crashing on arrival (its frozen with the progress bar keep running)...