0

How to save the input of html form user without need of websites

26th Feb 2019, 1:30 AM
Kumar MJ Vel
Kumar MJ Vel - avatar
2 RĂ©ponses
+ 2
You can accomplish this with javascript. Let’s assume we have the form bellow: <form id = “form”> <input type = “text” name = “text”> <input type = “submit” value = “Submit”> </form> Use JS to intercept the submit event and do what you like with the data: <script> document.getElementById(“form”).addEventListener(“submit”,(e)=>{ e.preventDefault(); var data = new FormData(document.getElementById(“form”)); }); </script>
26th Feb 2019, 1:44 AM
Mike Perkowski
Mike Perkowski - avatar
+ 1
Pls solve the problem friend's
26th Feb 2019, 1:31 AM
Kumar MJ Vel
Kumar MJ Vel - avatar