Reputation: 85
I have a web application which requires all data to be saved immediately.
I use the following lines to trigger the ajax call:
$('#form_global').on("change", function(e) {
e.preventDefault();
transaction_save();
});
My problem is that there are other events, which changes multiple inputs and the multiple input change triggers the ajax call multiple times.
Is there any way to prevent .on("change") to be fired multiple times?
Upvotes: 3
Views: 156