Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

146
Vistas
close the mobile menu when clicking on the menu link

I need help with the mobile menu. I'm trying to find/add a script that closes the menu after clicking a menu link. Can anyone help?

Thus, when you click on a menu link, you access the section, but the menu is still open. So I need a script that it should menu after clicking menu link.

Here is my GitHub for this repository: https://github.com/Eric8306/Remparts

Thanks in advance for your help and your js script :) My menu htmlI tried some scripts I found on the web but it doesn't work. I am in training as a developer and I have not yet seen javascript, hence my problem. So I hope you can help me :)

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Add below the code in your js file. Also include js library in head.

$(document).on("click",".header__nav .menu__list", function(){
   $(".header__Hamburger").trigger("click");
});

Method 1:

if ($(window).width() < 768){
   $(document).on("click",".header__nav .menu__list", function(){
     $(".header__Hamburger").trigger("click");
   });
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda