We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69ea324 + 6694427 commit cd4a666Copy full SHA for cd4a666
FAQ Application/script.js
@@ -1,8 +1,9 @@
1
const faqs = document.querySelectorAll('.faq');
2
3
faqs.forEach((faq) => {
4
- faq.addEventListener('click', () => {
5
- faq.classList.toggle("active");
6
- });
7
-})
8
-
+ faq.addEventListener('click', () => {
+ faq.classList.toggle("active");
+ const content = faq.querySelector('.faq-content'); // assuming the content is in an element with class 'faq-content'
+ content.classList.toggle("active");
+ });
9
+});
0 commit comments