window.onload=function(){
var input= $('input, textarea')
console.log(input)
if(localStorage.getItem("input")){
//if there is a stored value, apply it to the input
input.value=localStorage.getItem("input");
}
input.on('input' , function() {
console.log(1)
localStorage.setItem("input",input.value);
})
};