forked from marquez.juan/clase-8-DOM
Resolucion de 6to ejercicio
This commit is contained in:
@@ -60,5 +60,14 @@ function nuevoDiv() {
|
||||
item4.textContent = "Vori vori";
|
||||
listaLitoral.appendChild(item4)
|
||||
div.appendChild(listaLitoral);
|
||||
listaLitoral.id = "listaLitoral"
|
||||
document.body.appendChild(div);
|
||||
}
|
||||
|
||||
//ejercicio 6
|
||||
function limpiarLista(idLista) {
|
||||
const listaALimpiar = document.querySelectorAll(`#${idLista} li`);
|
||||
for (const i of listaALimpiar) {
|
||||
i.remove();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user