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

98
Vistas
never remove active class in jQuery

I added a class on my specific button, the button is on the slider, when I clicking the arrow of slider, the slider automatically adding active class to another button, I want to write some method which will never remove a class of my specific button how can I do it?

this is the code which is adding active class

($(item).parent('.owl-stage').parent('.owl-stage-outer').parent('.img-block').children('.owl-dots').children('button').not('.displayed-slider-btn')[2]).addClass('active');
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Just use another class. Class "active" is used by Owl plugin, you can not disable it without crashing the source code. For ex. add specific class "enabled" and copy for it all css style from class "active"

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