@philjacks
Posted
Hi friend!
CSS looks great & all the code is nice & clean. However, when I click the buttons the Javascript validation doesn't seem to work.
My suggestion would be to locate the eventListener for the form submit & add the preventDefault( ) method to stop the page refreshing.
I could be wrong (I'm still a newbie) but worth having a look.
@etnlmy
Posted
hey @philjacks , thanks a lot for your feedback :)
You're right, I currently only validate fields when they loose the focus (on blur event). I guess I should also trigger the validation when I submit the form.