Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
Take input type as a button and use onclick event. Call your function check() on that event. Make another function which will give output. Call that function in check () function after validating every field. This maybe the possible solution Because input type submit refresh the whole page after submitting data. So it will not work here.
29th Nov 2019, 5:22 PM
A͢J
A͢J - avatar
+ 4
Given your `check` function returns false on each invalid field verification, it would be hard to accumulate the error messages and show them all at once inside div .error.
30th Nov 2019, 12:19 PM
Ipang
+ 4
Inomjon Abdusattorov I can also help you. Come here. This is basic HTML form validation. There is no great thing.
16th Jan 2020, 11:02 AM
A͢J
A͢J - avatar
+ 4
Inomjon Abdusattorov If there is anything you want to learn. Complete your basics of Html first. Even if you have finished you may need to revise it again. Work on your project and if you are stuck, you can share your work like Monisha has shared. No need to message anyone directly! Ask in a way everyone can learn from your errors including yourself. Make sure you don't repeat the same mistake again. Good luck and Happy learning. 👍
16th Jan 2020, 1:15 PM
D Shah 🎯⏳️
D Shah 🎯⏳️ - avatar
+ 2
Hello. Monisha. The ideas you create are great. Can you help me with html? I'm waiting for your answer.
11th Dec 2019, 7:37 PM
Inomjon Abdusattorov
Inomjon Abdusattorov - avatar