@darshii98
Posted
You could set the input values to "", after submit button is clicked (when no errors), so that it would seem as if form is submitted. Bdw, nice job !! ;)
Marked as helpful
@darshii98 this is a great idea.
@NitaLewska
Posted
@darshii98 Ok, Thanks for the idea, I'll do it =)
@NitaLewska
Posted
@darshii98 I've done it =) maybe it wasn't the best way to do it, but it works
@darshii98
Posted
@NitaLewska Looks great :) .One small suggestion.. you have some repetitive code regarding classlist add and remove, you can create a helper function for that, and apply the function for every input. ;)