Activelink.js

import $ from "jquery/dist/jquery.min";

$(document).ready(function () {
  $("#main-menu a").click(function () {
    // alert("clicked");
    $(".active").removeClass("active");
    $(this).addClass("active");
  });
});
Crowded Capuchin