Skip to content

Instantly share code, notes, and snippets.

@kulakowka
Created April 15, 2014 14:22
Show Gist options
  • Save kulakowka/10736648 to your computer and use it in GitHub Desktop.
Save kulakowka/10736648 to your computer and use it in GitHub Desktop.
submit with delay - jquery
var timer;
$('input').on('change keyup', function(){
clearTimeout(timer);
timer = setTimeout(function(){
console.log('submit');
},3000)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment