2021-10-24 21:24:09 +05:30
|
|
|
document.querySelectorAll('.accordion-checkbox').forEach(cbox => {
|
|
|
|
cbox.addEventListener('change', function() {
|
|
|
|
const label = this.previousElementSibling
|
|
|
|
const caret = label.querySelector('.text')
|
|
|
|
if (cbox.checked) {
|
2021-10-25 16:36:09 +05:30
|
|
|
caret.innerHTML = ''
|
2021-10-24 21:24:09 +05:30
|
|
|
} else {
|
2021-10-25 16:36:09 +05:30
|
|
|
caret.innerHTML = ''
|
2021-10-24 21:24:09 +05:30
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|