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.
1 parent ec021c9 commit 6694427Copy full SHA for 6694427
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