JQuery a JavaScript Converter Online
// this worked for me
https://www.workversatile.com/jquery-to-javascript-converter/
Better Barracuda
// this worked for me
https://www.workversatile.com/jquery-to-javascript-converter/
There is no i guess:D
let toggleBtn = document.querySelector("#navbar-toggle");
let collapse = document.querySelector("#navbar-collapse");
toggleBtn.onclick = () => {
collapse.classList.toggle("hidden");
collapse.classList.toggle("flex");
};
let toggleBtn = document.querySelector("#navbar-toggle");
let collapse = document.querySelector("#navbar-collapse");
toggleBtn.onclick = () => {
collapse.classList.toggle("hidden");
collapse.classList.toggle("flex");
};