Home>

I tried pulling the code from the site https://codepen.io/samiralley/pen/xvFdc to make a responsive menu, but JS doesn't seem to work. Can't you tell me how to fix it?

The pulled code is as follows.

$('# header'). prepend ('<div><span></span><span></span><span></span></div>');
    $("# menu-icon"). on ("click", function () {
    $("nav"). slideToggle ();
    $(this) .toggleClass ("active");
});