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.
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.
2
Answers
Try like this:
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