![avatar](https://wklejamy.pl/img/default-avatar.png)
Untitled
Guest 94 27th May, 2024
switch(document.getElementById("grupa").value){
case "rodzina":
const rodzina1 = document.createTextNode(document.getElementById("grupa").value);
grupa.appendChild(rodzina1);
wiersz.className="rodzina";
break;
case "przyjaciele":
const przyjaciele1 = document.createTextNode(document.getElementById("grupa").value);
grupa.appendChild(przyjaciele1);
wiersz.className = "przyjaciele";
break;
case "praca":
const praca = document.createTextNode(document.getElementById("grupa").value);
grupa.appendChild(praca);
wiersz.className="praca";
break;
case "znajomi":
const znajomi = document.createTextNode(document.getElementById("grupa").value);
grupa.appendChild(znajomi);
wiersz.className = "znajomi";
break;
}
To share this paste please copy this url and send to your friends
RAW Paste Data