How do we connect input box value into a variable in JavaScript and html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8

How do we connect input box value into a variable in JavaScript and html

I want to store value of input box into a variable so that I can manipulate it.

19th Oct 2018, 1:54 AM
Devender Kumar
Devender Kumar - avatar
3 Answers
19th Oct 2018, 3:05 AM
John Wells
John Wells - avatar
0
Use document. getElementById() and store it to a variable
26th Nov 2018, 4:21 PM
M MANOJ KUMAR DORA
M MANOJ KUMAR DORA - avatar