How to add multiple Textbox value to local Storage HTML.
This Is My Html Page :-
function save(){
debugger;
var fieldValue = document.getElementById('textfield').value;
localStorage.setItem('text' , fieldValue );
}
function load(){
debugger;
var storedValue = localStorage.getItem('text');
if(storedValue)
{
document.getElementById('textfield').value = storedValue
}
}
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Dr.Ajay KashyapPosted Jul 21, 2017, 6:36 AM
Puneet KankarPosted Jul 21, 2017, 5:58 AM