form validator with Javascript
Form validator is a basic function when building a website with sign-in and sign-up sites. Normally the backend will require the user's name ,email and password,meanwhile double type the email to verify the email is no typo error. The form contains username,email,password and verifying password. HTML The container includes form which can submit. Four inputs with labels. And also link the css style and js script. snall is the section to show up the messager. CSS set up the label to block to show in one line. when input is being focused,change the brorder color and hidden the outline. hide the message first,when error happends,the message shows up. and also the border color changes when the status of input changed. when focusing the button, the style changes. JS select the DOMs first ,with getElementById() or querySelector() When the form submits, it's time to validate all the functions. first prevent the submition before all the events async. when error happends,showErr...