0
See thsi code plz
https://code.sololearn.com/Wh8Xh32E6UdA/?ref=app it works correctly but when I write gthis.value = "Sina"; it doesn't work why?
7 Antworten
+ 2
Its correct and same here working for me too
+ 1
It works for me?
0
see the code again plz
0
In your code's case, this. refers to the document(html, which has no variabke value), not the element.
The element simply calls the function when you click it; it does not inherit the function.
0
can you fix it plz
0
Use what you previously had. document.getElementById("input").value = "Sina";
0
you mean I can't use "this"??