Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

SignUp

@PedroOliveira76

Desktop design screenshot for the Intro component with sign-up form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I couldn't put the icon, I accept help

Community feedback

demy 190

@Demyttenaere

Posted

Salut @PedroOliveira76,

Pour afficher l'icone et le message d'erreur tu dois tout d'abord placer une balise : <span id="logo"></span> en dessous de chaque input dans ton html. Dans ton Js tu stock ton element dans une var comme ceci : var logo = document.getelementbyid('logo'); Ensuite lorsque tu veux le faire apparaitre avec ton if/else tu as simplement à faire : logo.innerHTML = "<img src='icon-error.svg'>"; et pour l'enlever : logo.innerHTML = '<span id="logo"></span>';

En espérant que cela t'ai aidé.

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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