forked from marquez.juan/clase-8-DOM
ejercicio 6
This commit is contained in:
@@ -62,4 +62,13 @@ function agregarComidasLitoral() {
|
||||
contenedor.appendChild(lista);
|
||||
|
||||
document.body.appendChild(contenedor);
|
||||
}
|
||||
|
||||
function limpiarLista(idLista){
|
||||
|
||||
const items = document.querySelectorAll(`#${idLista} li`);
|
||||
|
||||
for (const item of items){
|
||||
item.remove();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user