Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

133
Views
Este jQuery no funciona solo con Firefox

Lo estoy usando para megamenú. Funciona bien en Google Chrome, Edge, Brave y Opera.

No funciona solo en Firefox.

También puse este jQuery entre la etiqueta <head> . Sigue sin funcionar.

 $(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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!