design/public/assets/js/expandProductCheckout.js

11 lines
437 B
JavaScript
Raw Normal View History

2024-11-16 13:46:05 +00:00
document.querySelectorAll('.checkoutMainInsideSecBodyCard').forEach(card => {
const actionBtn = card.querySelector('.checkoutMainInsideSecBodyCardTopActionBtnView');
const bottom = card.querySelector('.checkoutMainInsideSecBodyCardBottom');
if (actionBtn && bottom) {
actionBtn.addEventListener('click', () => {
bottom.classList.toggle('checkoutMainInsideSecBodyCardBottomActive');
});
}
});