Form data extracted
Signed-off-by: Eoghan Conlon <eoghanconlon73@skynet.ie>
This commit is contained in:
parent
6ba509f8bd
commit
114ad8ea36
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,9 @@
|
|||
|
||||
function formHandler(listener){
|
||||
listener.preventDefault();
|
||||
alert("Default skipped");
|
||||
const formData = new FormData(formEl);
|
||||
const object = { user: formData.get('user'), email: formData.get('mail')};
|
||||
alert(JSON.stringify(object));
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue