@abdeldevprojects
Posted
everything works fine except i didn't understand why you used email instead of input variable in
line 8 : if (email.value.trim() == "") line 12 : else if (!validateEmail(email.value)
i think it should be
line 8 : if (input.value.trim() == "") line 12 : else if (!validateEmail(input.value)
i might be wrong because i am not an expert , still learning
thank you and happy coding <3
Marked as helpful
@Rohitgour03
Posted
@abdeldevprojects Thanks, man. 👍 You are right, it should be input. My bad. 😅