The form will submit to its action if onsubmit returns: | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

The form will submit to its action if onsubmit returns:

true or false

8th Oct 2018, 4:46 AM
Alvin Dela Cruz
Alvin Dela Cruz - avatar
2 Answers
+ 4
I think it needs to return true, returning false will abort the process, if I understood it correctly. P.S. Also lookup for event.preventDefault.
8th Oct 2018, 7:17 AM
Ipang
0
true
21st Jan 2023, 3:58 PM
Віталій Калатинець
Віталій Калатинець - avatar