title: Conversion from JQuery to Javascript
body: <p>I am trying to convert the following jQuery function to Javascript (to use in a Vue.js component).</p>
  
  <pre><code>$(".price-block a").on("click", function() {
    $(".price-block")
      .find(".dropdown-container")
      .toggleClass("is-open");
  });
  </code></pre>
  
  <p>This is what I have so far (not working):</p>
  
  <pre><code>document.getElementsByClassname(".price-block a").addEventListener("click", displayOptions);
  
  function displayOptions() {
    document.querySelector("price-block a").querySelectorAll('.dropdown-container').toggle('is-open');
  }
  </code></pre>
  
  <p>Anyone able to help? Or is there an online converter?</p>