feat/excersices #7

Open
saucedo.facundo wants to merge 3 commits from saucedo.facundo/clase-11-ejercicio-integrador:feat/excersices into main
Showing only changes of commit af18e62e06 - Show all commits

View File

@@ -64,5 +64,14 @@ document.getElementById('boton-agregar').addEventListener('click', () => {
document.getElementById('calificacion').value = "";
})
document.getElementById('searchBar').addEventListener('input', (e) => {
const query = e.target.value.toLowerCase();
const filtered = books.filter((book) =>
book.tittle.toLowerCase().includes(query) || book.author.toLowerCase().includes(query)
)
renderTable(filtered);
})
renderTable(books);