134
rated 0 times
[
135]
[
1]
/ answers: 1 / hits: 34960
/ 10 Years ago, mon, october 13, 2014, 12:00:00
I was wondering if it was possible to add an id to a variable in JavaScript.
Like This...
JavaScript:
var name = #userid;
HTML:
<input type=text id=userid />
... So I want to set a variable to the input in the HTML. I have tried using
getElementById()
I'd like it so when a userid is entered into the input, I would like to set that to a variable in JS.
Much Appreciated...
Thank You, James Noon
More From » html