Account Deleted
First of all check your js. If you say it's working for invalid datas, that could be you can't pass any email to validation function. if you can read email, check your validation function. i found out. If you still cant fixed i can help.
@MelvinMelonGit
Posted
Hi @gurkanozer ,
Thanks for your reply. I will look into this!
@MelvinMelonGit
Posted
Hi @gurkanozer ,
I still could not figure out, could you advise what can be done? Thanks!
Account Deleted
@MelvinMelonGit,
Your mistake is defining this constant:
const emailValue = email.value.trim();
You define that constant "emailValue" while email is empty. Just remove this constant and change your if statement.
if (!isEmailValid(email.value)) {
I think this will work.
@MelvinMelonGit
Posted
Hi @gurkanozer ,
I will try this out thanks!