I have a text box.I want to get the last text value.I am using local storage to save the text value and get the text value.
Here is my code:
$(function() {
var textbox = $("#text");
textbox.change(function() {
var value=$("#text").val();
localStorage.setItem("textboxValue",value);
});
var checkValue = localStorage.getItem("textboxValue");
textbox.append(checkValue);
});
But i am not able to append the value in textbox.Please kindly guide me.Thanks in advance.
Try: