DEV Community

Discussion on: How to make an HTML form like a pro

Collapse
 
carl0smore1ra profile image
Carlos Moreira

It's been a while since I handle native event without a framework but if I'm right you can get a input value inside the form form the event using input name

form.addEventListener("submit", function (e) {
const inputValue = e.target.inputName.value;
});