When i press save content in textarea need to be saved in localstorage and next time this content in localstorage will be place in textarea when site will be again opened.
**JS**
//save txtarea input local storage ..
function SaveBtn(){
var input_textarea = document.querySelector('#result');
var save_button = document.querySelector('#SaveBtn');
save_button.addEventListener('click', updateOutput);
input_textarea.textContent = localStorage.getItem('content');
input_textarea.value = localStorage.getItem('content');
function updateOutput() {
Del();
localStorage.setItem('content', input_textarea.value);
input_textarea.textContent = input_textarea.value;
}
}
Don't have any error or warning when i press save.
I want when next time visite site in this text area be 3*3=9 for this user.