Can fields in <form> act dinamically? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can fields in <form> act dinamically?

For example we calculate field one and two and show the result is in field three.

29th Jul 2018, 2:38 AM
Alfa Yanuar Riansyah
Alfa Yanuar Riansyah - avatar
4 Answers
+ 3
Use onkeyup attribute in form tag https://code.sololearn.com/Wm2somj6fDNi/?ref=app
29th Jul 2018, 4:30 AM
Calviղ
Calviղ - avatar
+ 2
Yes, it can.
29th Jul 2018, 3:46 AM
Calviղ
Calviղ - avatar
+ 1
You can add it directly on html, since it's simple calculation
29th Jul 2018, 3:52 AM
Calviղ
Calviղ - avatar
+ 1
Yup you can, you have to learn javascript for that. And especially selectors.
29th Jul 2018, 5:36 AM
ᴋᵘⁿᵃˡ
ᴋᵘⁿᵃˡ - avatar