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