@A-amon
Posted
Hey, it would be neater if you use form to wrap up the input elements instead of a div. Then, add novalidate to the form tag so that you can disable the default validation error message. As for modifying the css of error messages via javascript, it's better to just modifying class name instead of the style directly. For example, instead of setting the style property, you can assign a class named .has--error.