forked from marquez.juan/clase-8-DOM
ejercicio 6
This commit is contained in:
@@ -71,4 +71,10 @@ function limpiarLista(idLista){
|
||||
for (const item of items){
|
||||
item.remove();
|
||||
}
|
||||
}
|
||||
|
||||
function cambiarFoto(foto, texto){
|
||||
const imagen = document.querySelector("#foto");
|
||||
imagen.setAttribute("src", foto);
|
||||
imagen.setAttribute("alt", texto);
|
||||
}
|
||||
Reference in New Issue
Block a user