forked from marquez.juan/clase-8-DOM
ejercicio 7
This commit is contained in:
@@ -51,6 +51,9 @@ function limpiarlista(){
|
|||||||
const elementos = document.querySelectorAll(`#${idLista} li`)
|
const elementos = document.querySelectorAll(`#${idLista} li`)
|
||||||
for (const elemento of elementos){
|
for (const elemento of elementos){
|
||||||
elemento.remove()
|
elemento.remove()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
//ejercicio 7
|
||||||
}
|
const imagen = document.querySelector("img")
|
||||||
|
imagen.setAttribute("src", "foto2.jpg");
|
||||||
|
imagen.setAttribute("alt", "Locro")
|
||||||
Reference in New Issue
Block a user