Login
Remember
Register
Ask a Question
How To Get The Contents Of An Input Box Using Javascript?
+1
vote
asked
Dec 4, 2019
in
JavaScript
by
SakshiSharma
How To Get The Contents Of An Input Box Using Javascript?
#javascript-inputbox
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 4, 2019
by
rajeshsharma
Use the "value" property.
var myValue = window.document.getElementById("MyTextBox").value;
...