Clase 8-Manipulacion del DOM-Bruno TL #1

Open
tocaymasa.bruno wants to merge 13 commits from tocaymasa.bruno/clase-8-DOM:clase8-dom-bruno into main
2 changed files with 11 additions and 1 deletions
Showing only changes of commit b612de3f16 - Show all commits

View File

@@ -9,4 +9,10 @@ const item = document.querySelectorAll("ul li");
for (const i of item) {
console.log(i.textContent);
}
item.classList.push("item-lista");
function agregarItem() {
const item = document.querySelectorAll("ul li");
for (const i of item) {
i.classList.add("item-lista");
}
}

View File

@@ -176,3 +176,7 @@ h1 {
padding: 20px;
}
}
.item-lista {
color: red;
}