+ 1

How do you make a form in HTML, and acess it in Javascript

If I made a form that asked for a players name in HTML, how do I print that name in Javascript. getElementById("name").innerHTML results in an error, as getElementById is not defined. Assume that id="name"

25th Aug 2017, 3:22 AM
koala 🐨
koala 🐨 - avatar
2 Antworten
+ 2
Please show us your code in SoloLearn *Code Playground*. 👌
25th Aug 2017, 4:39 AM
Zephyr Koo
Zephyr Koo - avatar
0
https://code.sololearn.com/WA37pQ5S7VQE/?ref=app I think you can check that code ;)
25th Aug 2017, 4:45 AM
Daniel
Daniel - avatar