SyntaxFix
Write A Post
Hire A Developer
Questions
Listen the change event.
change
document.querySelector("input") .addEventListener('change', (e) => { console.log(e.currentTarget.value); });