11 - npm install --save jquery
22 - create mounted(){}
33 - place your jquery code in that
4like this =>
5
6
7mounted(){
8 // FAQ Accordion JS
9 $('.accordion').find('.accordion-title').on('click', function(){
10 // Adds Active Class
11 $(this).toggleClass('active');
12 // Expand or Collapse This Panel
13 $(this).next().slideToggle('fast');
14 // Hide The Other Panels
15 $('.accordion-content').not($(this).next()).slideUp('fast');
16 // Removes Active Class From Other Titles
17 $('.accordion-title').not($(this)).removeClass('active');
18 });
19 }