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

153
Views
Jquery script not working after ajax call

I have a problem, This Jquery Script not working after I did an ajax call and replaced the old content, you can see in the scripts the "slideToggle()" Not working but other orders like add and remove class's working well? how I can fix this?

var $content = $(".slide_content").show();  


$('body').on('click', '.arrow-slide', function () {
          
          if($('.randomclass',this).hasClass("table")){ 
            $('.randomclass',this).removeClass('meow'); <Works
            $('.randomclass',this).addClass('haow'); <Works
          }else{
            $('.randomclass',this).addClass('haow'); <Works
            $('.randomclass',this).removeClass('meow'); <Works
          }
          $content.slideToggle(); **<NOT WORKING**
});
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

    var $content = $(".slide_content").show();  
    
    
    $('body').on('click', '.arrow-slide', function () {

          var $content = $(".slide_content");
 
          if($('.randomclass',this).hasClass("table")){ 
            $('.randomclass',this).removeClass('meow'); <Works
            $('.randomclass',this).addClass('haow'); <Works
          }else{
            $('.randomclass',this).addClass('haow'); <Works
            $('.randomclass',this).removeClass('meow'); <Works
          }
          $content.slideToggle(); **<NOT WORKING**
});
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!