+ 1

I create object event InputEvent. I have error . Thanks you sir.

Error event listener Input. https://code.sololearn.com/WNG6iE4O39uj/?ref=app

31st Jul 2021, 1:39 PM
Malick Diagne
Malick Diagne - avatar
2 Answers
+ 6
The question is repeated and answered before. Please cancel one of them.
31st Jul 2021, 1:56 PM
JaScript
JaScript - avatar
+ 5
There needs to be a keyword "function" before function name in addEventListenerMethod. You declared const before document.getElementByid. Also it is event not e . Correct code is as follow, input.addEventListener ("change",function updateValue (event) { const input = document.querySelector ("input"); document.getElementById("log"); log.innerText = event.target.value;})
31st Jul 2021, 1:43 PM
Abhay
Abhay - avatar