LukZap• 245
@LukZap
Posted
hi, it will be nice to reset the validation message every time the button is clicked because now they stack on each other. You can try adding a div element below input and in click handler at the beginning set it's innerHtml = '', and then when you check email regex set it's innerHtml to validation message.
1