@warrenlee
Posted
Hey @elasri21 agreed that doing the layout was a challenge. I checked out your code and seems like you're going to use vanilla JS. You could continue as you are but you're going to have a lot of messy and repetitive code when it comes to handling the form because you'll need to add an event listener to each field, handle the error states like when you should hide them or show them and prior to error states, implementing the validations.
You could try this library for your approach https://validatejs.org/ But I would recommend if you know them to either use Vue/React JS framework.
Feel free to check out my solution if you need some inspiration/tips!
Marked as helpful
@elasri21
Posted
@warrenlee Thanks man! I like to use vanilla js. And i will check your solution and of course i'll learn something new.