window.addEventListener('load', () => {
const multiplyInput{$product.id} = document.querySelector('#multipl{$product.id}');
const resultElements{$product.id} = document.querySelectorAll('.result{$product.id}');
resultElements{$product.id}.forEach(item => {
item.setAttribute('data-default-count{$product.id}', item.innerText);
});
multiplyInput{$product.id}.addEventListener('input', e => {
resultElements{$product.id}.forEach(item => {
item.innerText = item.getAttribute('data-default-count{$product.id}') * e.target.value;
});
})
})
window.addEventListener('load', () => {
const multiplyInput734 = document.querySelector('#multiply734');
const resultElements734 = document.querySelectorAll('.result734');
resultElements734.forEach(item => {
item.setAttribute('data-default-count734', item.innerText);
});
multiplyInput734.addEventListener('input', e => {
resultElements734.forEach(item => {
item.innerText = item.getAttribute('data-default-count734') * e.target.value;
});
})
})