How can I retrieve data from a form in HTML with the help of Javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can I retrieve data from a form in HTML with the help of Javascript?

29th Dec 2017, 9:32 AM
Sayem
Sayem - avatar
2 Answers
+ 16
document.forms[0].getElementsByTagName("input")[0].value
29th Dec 2017, 9:44 AM
Valen.H. ~
Valen.H. ~ - avatar
29th Dec 2017, 10:05 AM
Calviղ
Calviղ - avatar