forked from marquez.juan/clase-8-DOM
ejercicio 6
This commit is contained in:
@@ -72,3 +72,9 @@ function limpiarLista(idLista){
|
|||||||
item.remove();
|
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