Design comparison
SolutionDesign
Solution retrospective
I intended to set the email placeholder color to red whenever the email has an incorrect format, but I couldn't figure out how to change the placeholder's color in JS. I've made it so that the actual text in the form changes color instead, but it does not look quite right. How can I change the placeholder's color through JavaScript?
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord