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

100
Views
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 answers
Answer question

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 Report
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!