@Alex-Gamarano
Posted
Hey @OsmanSamar, My approach to this challenge was to create a class: .error { background-image: url("./images/icon-error.svg"); background-repeat: no-repeat; background-position: 95%; }
Than you can use Java Script to toggle that class.
Also, within your solution you are rellying on the HTML 5 required attribute for each input field. That is not uite what the challenge proposed. You should be able to use JS to verify the state of each field and display the messages below them.
I just finished the same challenge. Here is my solution: https://alex-gamarano.github.io/intro-component-with-signup-form-master/
Feel free to give me your feedback.
Best regards, Alex
Marked as helpful