Script now extracts email from form
This commit is contained in:
parent
776ed76ab0
commit
9e20464bbd
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@
|
|||
|
||||
function formHandler(listener){
|
||||
listener.preventDefault();
|
||||
alert("this works");
|
||||
const formData = new FormData(formEl);
|
||||
const email = formData.get("email");
|
||||
const object = {email: email};
|
||||
alert(JSON.stringify(object));
|
||||
}
|
||||
</script>
|
||||
</html>
|
Loading…
Reference in a new issue