@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é.