- 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

31st Jul 2021, 3:10 PM
Malick Diagne
Malick Diagne - avatar
2 Antworten
+ 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; });
31st Jul 2021, 3:20 PM
JaScript
JaScript - avatar
+ 1
Is it working properly now?
31st Jul 2021, 3:38 PM
JaScript
JaScript - avatar