Clase DOM #12
@@ -69,4 +69,10 @@ function limpiarLista (idlista){
|
||||
}
|
||||
}
|
||||
|
||||
limpiarLista("lista-inicial")
|
||||
limpiarLista("lista-inicial")
|
||||
|
||||
// 7.Escribir el código que cambie el `src` de la imagen a `"foto2.jpg"` y el `alt` a `"Locro"`.
|
||||
|
||||
let fotoEmpanadasUno = document.querySelector("#foto");
|
||||
fotoEmpanadasUno.setAttribute("src", "foto2.jpg");
|
||||
fotoEmpanadasUno.setAttribute("alt", "Locro");
|
||||
Reference in New Issue
Block a user