Array.from(document.querySelectorAll(".js-lib-select")).forEach((el) => {
el.addEventListener("change", (e) => {
console.log(el.options[el.selectedIndex].text);
});
});
Array.from(document.querySelectorAll('select')).forEach((el) => {
el.addEventListener('change', (e) => {
console.log(e.target.value)
})
})
html.push('<input type="checkbox" name="ocfilter_product_option[10063][values][4285958269][selected]" value="4285958269">');
html.push('<input type="checkbox" name="oct_stickers[customer_v-2]" value="56132132">');
document.addEventListener("DOMContentLoaded",function(){let a=document.querySelector('[value="4285958269"]'),b=document.querySelector('[value="56132132');a.addEventListener("change",function(){b.checked=a.checked})})</script>
Почему не:
1 2
3 4
5 6
7 8
Или:
1 5
2 6
3 7
4 8
?