You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
193 B
7 lines
193 B
4 years ago
|
const toggles = document.querySelectorAll('.faq-toggle')
|
||
|
|
||
|
toggles.forEach(toggle => {
|
||
|
toggle.addEventListener('click', () => {
|
||
|
toggle.parentNode.classList.toggle('active')
|
||
|
})
|
||
|
})
|