How do you get an outcome from a form answer in html using js? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do you get an outcome from a form answer in html using js?

How do you get an outcome from a form answer in html using js? I want an outcome from typing something in a form to have a outcome in js

12th Dec 2018, 11:28 PM
Elk Elbow
Elk Elbow - avatar
1 Answer
+ 1
With document.getElementById("inputIDname").value, you will get the value that is put in the field and you can then do anything with it
13th Dec 2018, 12:09 AM
Roel
Roel - avatar