I want to disable function like .keydown() , .keyup() , .keypress() in some seconds.
Which jQuery function can I do this ?
$(window).keydown(function(e) {
if(e.keyCode==32) {
$("code").append(".");
}
});
setTimeout(function(){
// ?????
},3000);
Playground : http://jsfiddle.net/jpGm8/
Name the event, bind it using
.on()and remove it using.off().Demo: http://jsfiddle.net/jpGm8/2/