forked from marquez.juan/clase-8-DOM
Resolucion del 7mo ejercicio
This commit is contained in:
@@ -70,4 +70,10 @@ function limpiarLista(idLista) {
|
|||||||
for (const i of listaALimpiar) {
|
for (const i of listaALimpiar) {
|
||||||
i.remove();
|
i.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//ejercicio 7
|
||||||
|
const imagen = document.querySelector("#foto");
|
||||||
|
imagen.setAttribute("src", "foto2.jpg");
|
||||||
|
imagen.setAttribute("alt", "Locro");
|
||||||
|
console.log(imagen.getAttribute("alt"));
|
||||||
Reference in New Issue
Block a user