Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
Ex : <form action="" class="" method=""> <input id="email" name="" type="email"> </form> you can store email like this : var inputemail= document.getElementById("email"); localStorage.setItem("email", inputemail.value); If you want to get item then : var outputemail = localStorage.getItem("email"); I hope this will help you.
26th Mar 2020, 6:50 AM
Shaili Shah
Shaili Shah - avatar