1
I need to create a toogle
on the menu at media query
, but I want it in pure Javascript, because I’m trying not to use jQuery.
$(document).ready(function(){
$('.menu').click(function(){
$('nav').toggleClass('active');
})
});
How to convert this to jQuery for pure JS?
Hello, I’m trying to find the right way to apply, I need to activate a hidden CSS class inside an HTML tag only I’ve tried with Toogle and it wasn’t, I really want to learn the concept in JS. I’m trying to apply for study purposes.
– youtuber 23