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

260
Vistas
Jquery on('click') not working after initializing menuzord

I have the following on click method on an Element:

$('.searchInputContainer a.dnnSearchBoxClearText').on('click', function () {
    var $this = $(this);
    var $wrap = $this.parent();
    $('.searchInputContainer input').val('').focus();
    $this.removeClass('dnnShow');
    $('.searchSkinObjectPreview', $wrap).remove();
    return false;
});

But after initializing the menuzord element, the on click method isn't working anymore.

jQuery(document).ready(function () {
        jQuery("#menuzord").menuzord({
            align: "left",
            indicatorFirstLevel: "<span class='hide-on-desktop hide-on-tablet'>&nbsp;<i class='fa bw-ico-arrow-small-down' aria-hidden='true'></i></span>",
            indicatorSecondLevel: "<i class='bw-ico-arrow-small-down hide-on-mobile' aria-hidden='true'></i><i class='bw-ico-arrow-small-down hide-on-desktop hide-on-tablet' aria-hidden='true'></i>"
        });
    });

Does anyone know what this can be due to? Or maybe Menuzord overwrites the event?

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

0

After using the selector in the JQuery "on" method, it worked:

$('.searchInputContainer').on('click', 'a.dnnSearchBoxClearText', function () {
    var $this = $(this);
    var $wrap = $this.parent();
    $('.searchInputContainer input').val('').focus();
    $this.removeClass('dnnShow');
    $('.searchSkinObjectPreview', $wrap).remove();
    return false;
});

But I don't understand the different. Would be nice if someone can explain it to me.

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