@mattstuddert
Posted
Hey, nice work on this project! What is it specifically that you're having issues with on the form validation? Everything worked fine for me when filling it in.
@mstanka
Posted
@mattstuddert Thank you for your help!
@mattstuddert
Posted
@mstanka you're welcome!
@mstanka
Posted
@mattstuddert Hi Matt, thank you! Actually, it works. The only issue is that the form can be submitted with an empty input.
@mattstuddert
Posted
@mstanka ah OK, have a look again this expression on line 18: (regEx.test(emailValue) !== true || emailValue === 0)
. For the second part you'd need to check emailValue.length
against the number 0, not emailValue
, as that would just be an empty string if the input
is empty. Or you could shorten it to (regEx.test(emailValue) !== true || !emailValue)
.
Hope that helps!