Convert script from Jquery to Vanilla js

I’m in diffulty to transform this script to vanilla js. Can someone help me?

i dont understand

const $this = $(this);
parent() is like parentNode?


  let swiperInstances = [];
  $(".swiper-container").each(function (index, element) {
    const $this = $(this);
    $this.addClass("instance-" + index);
    $this.parent().find(".swiper-pagination").addClass("pagination-" + index);
    $this.parent().find(".swiper-button-prev").addClass("prev-" + index);
    $this.parent().find(".swiper-button-next").addClass("next-" + index);
    swiperInstances[index] = new Swiper(".instance-" + index, {
      navigation: {
        prevEl: ".prev-" + index,
        nextEl: ".next-" + index,

200 thoughts on “Convert script from Jquery to Vanilla js”

  1. Pingback: prednisone 875
  2. Pingback: ivermectin uses
  3. Pingback: ivermectin
  4. Pingback: sildenafil otc us
  5. Oh my goodness! Amazing article dude! Thanks, However I am experiencing difficulties with your RSS.
    I don’t know the reason why I cannot subscribe to
    it. Is there anyone else having similar RSS problems? Anyone
    that knows the solution will you kindly respond?

  6. Hey there! I could have sworn I’ve been to this site before but after
    browsing through some of the post I realized it’s new to me.
    Nonetheless, I’m definitely delighted I found it and I’ll be book-marking and checking back often!

  7. Hi just wanted to give you a brief heads up and let
    you know a few of the images aren’t loading properly. I’m not sure why but I think its a linking issue.

    I’ve tried it in two different browsers and both show the same results.