I need to convert this piece of jquery code:
$(document).ready(function() {
$(".menu-icon").on("click", function() {
$("nav ul").toggleClass("showing");
});
});
to pure javascript, the reason is that i dont want to use jquery library on my page thanks for any help :)
Aucun commentaire:
Enregistrer un commentaire