Skip to content Skip to sidebar Skip to footer

Edit Localstorage User?

Hello i am trying to edit the user with localStorage, but can't seem to parse the value of my user info to the input field of my 'EditUser' form. I have read that set/getItem() sho

Solution 1:

You have a couple of things wrong.

e_mail: this.e_mail.value

There is no email field. This throws an error and makes your form submit handler not prevent default.

Btw - it may not be a good idea to store user info in LocalStorage like that.

Post a Comment for "Edit Localstorage User?"