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
Showing only changes of commit 31030688a4 - Show all commits

View File

@@ -70,4 +70,10 @@ function limpiarLista(idLista) {
for (const i of listaALimpiar) {
i.remove();
}
}
}
//ejercicio 7
const imagen = document.querySelector("#foto");
imagen.setAttribute("src", "foto2.jpg");
imagen.setAttribute("alt", "Locro");
console.log(imagen.getAttribute("alt"));