+ 1
How do I get an HTML input into JavaScript?
Example: <input id="name"> I need to do some operations with input #name in JavaScript so I need to transfer it into JS My English is bad, so if you don't understand what I'm talking about, I'll try to explain by another way.
2 Respostas
+ 2
var inp = document.getElementById(“name”);
+ 4
I think getDoucmentById method helps you