7 lines
193 B
JavaScript
7 lines
193 B
JavaScript
|
const toggles = document.querySelectorAll('.faq-toggle')
|
||
|
|
||
|
toggles.forEach(toggle => {
|
||
|
toggle.addEventListener('click', () => {
|
||
|
toggle.parentNode.classList.toggle('active')
|
||
|
})
|
||
|
})
|