+ 2

Adding a string from html to js

I´m thinking about if you write something in a textarea,textblock... that text send to a var in js. Thanks

14th Apr 2018, 7:14 PM
blackndBlue
blackndBlue - avatar
2 odpowiedzi
+ 2
You can do a form with id=“test” and then do smth like this: var myVar = document.getElementById(“test”).value ; So it will be the value entered in the form
14th Apr 2018, 10:39 PM
Lev
Lev - avatar