ejercicios DOM #10

Open
scarano.luca wants to merge 8 commits from scarano.luca/clase-8-DOM:ejercicios into main
Showing only changes of commit 78e9f0bc76 - Show all commits

View File

@@ -51,6 +51,9 @@ function limpiarlista(){
const elementos = document.querySelectorAll(`#${idLista} li`)
for (const elemento of elementos){
elemento.remove()
}
}
}
//ejercicio 7
const imagen = document.querySelector("img")
imagen.setAttribute("src", "foto2.jpg");
imagen.setAttribute("alt", "Locro")