I\'ve got a field A in my webpage which, when edited by the user, invokes an API call (using jQuery), which updates field B. After the edit, the API should be called every 1
var update; // something happened clearTimeout(update); update = setTimeout(thisFunction, 10000);