0
How can I store the users selection?
https://code.sololearn.com/W2UwCzWNQ4dO/#html I don't think it's possible in Sololearn, but if I were to run this in the browser, how could I save my selection? Like, let's say I select the second option. Then I press a save button, or maybe it saves automatically(your choice) Then I close the browser Then I come back and the option is still selected
5 Réponses
+ 1
here's an mdn reference: https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage
+ 1
You mean Clipboard?
+ 1
0
Here the code from somebody else
https://code.sololearn.com/Woa3CMw3nj3t/?ref=app
0
Thanks Calviղ
Ok, now how can I save the selection with a button. I tried it and it just broke the code xD