Untitled
unknown
plain_text
a month ago
395 B
0
Indexable
const buttons = document.querySelectorAll('.add'); buttons.forEach(button => { button.addEventListener('click', function() { alert('Item added to cart!'); }); }); const btn = document.querySelectorAll('.remove'); btn.forEach(button => { button.addEventListener('click', function() { alert('Remove from cart!'); }); });
Editor is loading...
Leave a Comment