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

134
Vistas
This jQuery is not working with Firefox only

I'm using it for megamenu. It's working fine on Google Chrome, Edge, Brave, and Opera.

It's not working on Firefox only.

I have also put this jQuery between <head> tag. Still, not working.

$(document).ready(function($) {
    "use strict";
    // Mega menu (with tabs)
    $(window).load(function(){
        $('.megamenu-tabs').each(function(){
            $( '.menu-item', this ).wrapAll( '<ul class="tabs-nav" />');
            $( '.tab-content', this ).wrapAll( '<ul class="tabs-content-wrapper" />');
            $( '.tabs-nav, .tabs-content-wrapper', this ).wrapAll( '<li class="submenu-content" />');
            $('ul.sub-menu', this).show();
            
            $('.tab-content:not(:first-child)', this).addClass('tab-hidden');
            $('.tabs-nav li:first-child', this).addClass('nav-active');
            $('.tabs-nav li', this).hover(function() {
                var tabId = $(this).attr('id');
                $(this).closest('.tabs-nav').find('li').removeClass('nav-active');
                $(this).addClass('nav-active');
                $(this).closest('.submenu-content').find('li.tab-content').addClass('tab-hidden');
                $(this).closest('.submenu-content').find('li.'+tabId).removeClass('tab-hidden');
            }); 
            
            var highestTab = $('.tabs-content-wrapper', this).outerHeight(); 
            $('.tabs-nav', this).css( 'min-height', highestTab-40 );
            
        });     
    });  
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

about 4 years ago · Juan Pablo Isaza
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