+ 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 Respostas
+ 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