How do I capture form value using JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

How do I capture form value using JavaScript

9th Oct 2019, 12:08 PM
AbdulHameed
AbdulHameed - avatar
2 Answers
+ 2
if the form has an id, you can use document.getElementById('id-here').value
9th Oct 2019, 12:24 PM
Taste
Taste - avatar
+ 1
Form does not have value, values come from the inputs of the form .
9th Oct 2019, 1:47 PM
Calviղ
Calviղ - avatar