@@drvipinclassess What I did: Defined the variable as undefined, so I check if the variable is equal to "" (empty string), so in that case in the first time the field is without error, but if the user tries to submit the form it will turn into red, or if the user enter an email and erase his input, it will turn red too because the variable will get "" instead undefined.
The Best one Tutorial I have ever seen. Highly recommended if anyone want to learn wir Dr. Vipin
Thank you!
Excellent, Appreciate for your work
Thanks!
Just a question: What do you do to avoid the Enter password field turn into red at the first time the user is seeing the page?
Depand on you, what you want, do as you want
@@drvipinclassess What I did: Defined the variable as undefined, so I check if the variable is equal to "" (empty string), so in that case in the first time the field is without error, but if the user tries to submit the form it will turn into red, or if the user enter an email and erase his input, it will turn red too because the variable will get "" instead undefined.
thanks, dark mode please
Welcome!