Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to listen to input change

const input = document.querySelector('input')  
input.addEventListener('change', (e) => {  
  console.log(e.target.value);  
});
Source by thewebdev.info #
 
PREVIOUS NEXT
Tagged: #listen #input #change
ADD COMMENT
Topic
Name
5+5 =