0
Where is the problem?
var txt = document.getElementById("txt"), res = document.getElementById("res"); txt.onkeyup = function () { res.innerHTML = txt.value; } //Error can not set property onkeyup of 'null'
2 Réponses
+ 8
If you trying to run this code on the playground then you can find the answer in one of these:
https://www.sololearn.com/discuss/1640793/?ref=app
https://www.sololearn.com/discuss/612424/?ref=app
https://www.sololearn.com/discuss/259009/?ref=app
https://www.sololearn.com/discuss/276929/?ref=app
https://www.sololearn.com/discuss/1229047/?ref=app
https://www.sololearn.com/discuss/1469777/?ref=app
https://www.sololearn.com/discuss/1379357/?ref=app
https://www.sololearn.com/discuss/1733139/?ref=app
https://www.sololearn.com/discuss/5067/?ref=app
https://www.sololearn.com/discuss/1218303/?ref=app
https://www.sololearn.com/discuss/261854/?ref=app
0
Burey thanks