TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Dr.Ajay Kashyap
NA
521
284.1k
How to add multiple Textbox value to local Storage HTML
Jul 21 2017 4:31 AM
How to add multiple Textbox value to local Storage HTML.
This Is My Html Page :-
<!doctype html>
<html>
<head>
<title>Local Data Storage</title>
<script>
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
}
}
</script>
</head>
<body onload="load()">
<lable>Name:- </lable>
<input type="text" id="textfield" />
<lable>Last Name:- </lable>
<input type="text" id="textfield1" />
<input type="button" value="save" onclick="save()"/>
</body>
</html>
Reply
Answers (
2
)
Sending Email error in Python
How DB differ from Normal storage?