Hey guys, so in this tutorial I want to show you what we can do with another form method – the onsubmit method.
The onsubmit method in JavaScript lets us interrupt the process of the form being sent to the server, so that we can perform some client side validation first and save time.
If you have any questions, just ask :).
SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1
========== JavaScript for Beginners Playlist ==========
========== CSS for Beginners Playlist ==========
========== HTML for Beginners Playlist ==========
========== The Net Ninja ============
For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk
========== Social Links ==========
Twitter – @TheNetNinja – https://twitter.com/thenetninjauk
Original source
19 responses to “JavaScript Tutorial For Beginners #44 – VERY Simple Form Validation”
thanks
Your videos are awesome net ninja.. I watched all the videos on node.js.. they were extremely helpful.. now js! Thanks a ton!!!!
Thank you Sir for all the effort that you've exerted into these wonderful tutorials. Keep it up!
4:47 That is a really really rüülle
4:24 "Hunky-dory" = Satisfactory, Fine. (Also a 1971 album by David Bowie)
when i define a variable in bracket it gives an error " document is not define[no-undef]" like this
how can i solve this problem??
I'm so happy I found you….
Great work. I'm, realy, waiting for more lessons for forms, and JS advanced
Hi Net Ninja,
I like your HTML, CSS, Bootstrap and now JavaScript lessons !!!
You are an excellent and entertaining teacher,
exactly what every student needs. Thank you !!!
Best regards <3
If return false does the job of not submitting the form, why is it recommended to use event.preventDefault()?
Thanks for the Videos. Can you please advise how to proceed to the intermediate level. Unfortunately, you don't have any intermediate content on JS. 🙂
Explained really well r u playlist on forms
Hi the message isn't showing up for me http://codepen.io/Mr_Tofu/pen/egqJrN any ideas?
This is so incredibly helpful, thank you! I'm going to reference your channel on my coding blog! 😀
Very good presentation and nice work. Thank you for your time and help. Please add some course for advanced JavaScript if possible.
If "onsubmit" is a document event, then how does it know that the button, Submit, submits?
https://jsfiddle.net/uqwse9fo/ its not showing the message for me, I pretty sure I have everything filled in
good work, PICISI from twitter told me about you
Please keep up this good work! 🙂