Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

input events

const input = document.querySelector('input');
const log = document.getElementById('values');

input.addEventListener('input', updateValue);

function updateValue(e) {
  log.textContent = e.target.value;
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #input #events
ADD COMMENT
Topic
Name
8+9 =