+ 1

How to get the value of a input in a variable with JavaScript

I make a simple program where I need to get the value of a input and set it to a variable but I cant manage to find out how on the internet as document.getElementById("text").value dont work, please help

25th Feb 2019, 10:20 PM
Bored D
Bored D - avatar
4 Answers
+ 5
How about you show your code so that others can actually run and debug it.
25th Feb 2019, 10:22 PM
Hatsy Rei
Hatsy Rei - avatar
+ 4
Ah, OK. Good to know.
25th Feb 2019, 11:11 PM
Hatsy Rei
Hatsy Rei - avatar
0
I dont know how but I just solve the probleme after 1 Day
25th Feb 2019, 10:43 PM
Bored D
Bored D - avatar