New course! Every coder should learn Generative AI!
Try a free lesson- 2
How do I capture form value using JavaScript
2 Answers
+ 2
if the form has an id, you can use document.getElementById('id-here').value
+ 1
Form does not have value, values come from the inputs of the form .