Created
April 15, 2014 14:22
-
-
Save kulakowka/10736648 to your computer and use it in GitHub Desktop.
submit with delay - jquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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