The BEST way to do form validation in JavaScript
YOUR LINK HERE:
http://youtube.com/watch?v=iyngFd6f8ko
A lot of JavaScript form validation tutorials won't show you how to write code that can be reused for multiple forms. • 00:00 Intro • 01:47 Creating the form • 22:34 Validating the form • In this #JavaScript tutorial, we'll see how to create a set of functions which can be used to validate a form using the HTML validation attributes that, by default, the browser uses to trigger its own validation. • We'll start off by creating an #HTML form from scratch and we'll use Tailwind and FontAwesome to add some styling and icons. • Once we've got a form set up, we'll see how to use the HTML validation attributes to trigger the default browser validation. Once we've seen how this works, we'll create JavaScript to override this behaviour and replace it with our own validation logic which matches what the browser already provides. By doing this, we can customise the look and feel of the validation the user sees on each input field. Channel Handle @codebubb
#############################
