feat: add item list with click event to toggle selection

This commit is contained in:
2026-05-25 12:17:39 -03:00
parent 927173b159
commit 28718fea20
3 changed files with 17 additions and 1 deletions

View File

@@ -1 +1,7 @@
// Agregar aquí el código javascript
document.getElementById('itemList').addEventListener('click', (event) => {
if (event.target.tagName === 'LI') {
event.target.classList.toggle('selected');
}
});