Input | SoloLearn: Learn to code for FREE!

+2

Input

how to get the value from input tag?

7/30/2018 4:06:54 PM

Cлaвeн Ђервида

3 Answers

New Answer

+9

https://www.w3schools.com/jsref/prop_text_value.asp https://stackoverflow.com/questions/11563638/how-do-i-get-the-value-of-text-input-field-using-javascript

+3

HTML <input type="..." id = "input"/> JS document.getElementById("input").value;

0

Here is a small example https://code.sololearn.com/WDj7OlB8J2Qm/?ref=app Hope this helps ☺️☺️.