1const buttons = document.querySelectorAll("#select .button")
2for (const button of buttons) {
3 button.addEventListener('click', function(event) {
4 //...
5 })
6}
7
1var deleteLink = document.querySelector('.delete');
2
3deleteLink.addEventListener('click', function(event) {
4 event.preventDefault();
5
6 var choice = confirm("sure u want to delete?");
7 if (choice) {
8 return true;
9 }
10});
11