title: How to fix this simple accordion, JavaScript not working
body: <p>I am trying to fix the subsequent items after shipping on <a href="https://trvlboutiq.com/pages/faq" rel="nofollow noreferrer">this page</a>. The first 3 works but after the next heading it does not click. Why?</p>
  
  <p>Is it because the script is breaking at a certain point. Please tell me how to fix this . It is saying my post is mostly code so i will keep adding more words</p>
  
  <pre><code>&lt;!-- JS --&gt;
  &lt;script type="text/javascript"&gt;
    $(document).ready(function($) {
      $('#accordion').find('.accordion-toggle').click(function() {
  
        //Expand or collapse this panel
        $(this).next().slideToggle('fast');
  
        //Hide the other panels
        $(".accordion-content").not($(this).next()).slideUp('fast');
      });
    });
  &lt;/script&gt;
  
  &lt;!-- CSS --&gt;
  &lt;style&gt;
    .accordion-toggle {
      cursor: pointer;
    }
  
    .accordion-content {
      display: none;
    }
  
    .accordion-content.default {
      display: block;
    }
  &lt;/style&gt;
  
  &lt;!-- HTML --&gt;
  &lt;h2&gt;Orders&lt;/h2&gt;
  
  &lt;div id="accordion"&gt;
    &lt;meta charset="utf-8" /&gt;
    &lt;h4 class="accordion-toggle"&gt;&lt;span&gt;What methods of Payment do you accept?        
      &lt;/span&gt;&lt;/h4&gt;
    &lt;div class="accordion-content default"&gt;
      &lt;p&gt;We accept all of the following: Visa, Mastercard, American Express credit and debit cards and PayPal. We also offer our customers Afterpay (see terms via https://www.afterpay.com.au). All prices on our site are stated in Australian dollars (AUD).
        .&lt;/p&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;h2&gt;Shipping&lt;/h2&gt;
  &lt;div id="accordion"&gt;
    &lt;h4 class="accordion-toggle"&gt;HOW LONG WILL IT TAKE FOR MY ORDER TO ARRIVE?&lt;/h4&gt;
    &lt;div class="accordion-content default"&gt;
      &lt;p&gt;Cras malesuada ultrices augue molestie risus.&lt;/p&gt;
    &lt;/div&gt;
    &lt;h4 class="accordion-toggle"&gt;Who do you ship with?&lt;/h4&gt;
    &lt;div class="accordion-content"&gt;
      &lt;p&gt;Our orders are sent by Australia Post.
  </code></pre>
  
  <p>So on and so forth but it does not work</p>