0
Is there a way to save the text written in a textarea field and load it the next time the user reloads the page?
4 Respuestas
+ 1
Maxwell If you're not using something like React, then you'll have to use the browser's localStorage API.
Here are some links that might help. This StackOverflow question is about an <input> but the same general approach should work for a <textarea> as well:
https://stackoverflow.com/questions/38930144/keep-input-value-after-refresh-page
https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage
+ 7
Shahid Zia
Please remove your spam and use appropriate language. This is not your advertising platform.
-- Janning⭐
SoloLearn Platinum Moderator