+ 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
2 Answers
+ 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