@MelvinAguilar
Posted
Hello there ๐. Good job on completing the challenge !
-
The issue isn't that you're changing the color of the input; the problem is that you're clearing it every time you validate it. The first line of code in the
redPlaceholder()
function that is responsible for clearing the email and password should be commented out or removed to resolve the issue.function redPlaceholder() { /* inputs[i].value = ""; REMOVE THIS LINE */ inputs[i].classList.add('red'); inputBox[i].style.fontStyle = "italic"; }
I hope you find it useful! ๐
Happy coding!
Marked as helpful
@mohsenrostami2000
Posted
Thanks for your help@MelvinAguilar