const myInput = document.querySelector('input[name="exampleInput"]'); myInput.addEventListener("change", (e) => { // here we do something });