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

118
Views
How to apply debouncer on change function jQuery?

How would one apply debouncer on this jQuery function. So far it makes no call.

 $('.make-ajax-call-js').on($.debounce('change', function (e) {
//whatever ajax call
}));

I have debouncer script included in my js files.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Try like this:

$('.make-ajax-call-js').change($.debounce(1000, function(e) {
    console.log("It works!");
}));
about 4 years ago · Juan Pablo Isaza Report

0

To fix this, you will have to pass in the debouncing function as a parameter to the jquery click event along with the debounce time

$('.make-ajax-call-js').click($.debounce(250, function(e) {
    //whatever ajax call
}));
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!