- 3
Thé event occurs when the user changes the contents of data field. How can i understun it? I want to know it. Thanks you sir.
Event onchange. https://code.sololearn.com/WNG6iE4O39uj/?ref=app
2 ответов
+ 2
// Please try this order:
var input = document.querySelector ("input");
//event
input.addEventListener ("change",function updateValue (event) {
var log = document.getElementById ("log");
log.innerText = event.target.value;
});
+ 1
Is it working properly now?