jeudi 27 septembre 2018

Converting jquery code to pure javascript

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