var typingTimer;
var doneTypingInterval = 2000;
$('input[name="optpeople_return_2"]').keyup(function(){
clearTimeout(typingTimer);
typingTimer = setTimeout(getPriceWithVehicles, doneTypingInterval);
});
$('input[name="optpeople_return_2"]').keydown(function(){
clearTimeout(typingTimer);
});
var doneTypingInterval = 2000;
$('input[name="optpeople_return_2"]').keyup(function(){
clearTimeout(typingTimer);
typingTimer = setTimeout(getPriceWithVehicles, doneTypingInterval);
});
$('input[name="optpeople_return_2"]').keydown(function(){
clearTimeout(typingTimer);
});
No comments:
Post a Comment