You can use the change
event on the form
element:
const form = document.querySelector('form');
form.addEventListener('change', function() {
alert('Hi!');
});
You can use the change
event on the form
element:
const form = document.querySelector('form');
form.addEventListener('change', function() {
alert('Hi!');
});