File size: 385 Bytes
1a11305 |
1 2 3 4 5 6 7 8 9 10 |
const faqQuestions = document.querySelectorAll('.faq-question');
faqQuestions.forEach(question => {
question.addEventListener('click', function () {
const answer = this.nextElementSibling;
answer.classList.toggle('show');
// const arrow = this.querySelector('.faq-arrow');
// arrow.classList.toggle('rotate'); // Simplified class toggle
});
}); |