Réponse

element.setAttribut("name_attribute","value");

Colonne
Question

Quelle méthode pour rajouter un attribut à un élément du DOM?

Thématique