1.0.1 • Published 8 years ago
watch-input v1.0.1
$("#search").watchInput({
delay : 700,
input : function(/*newValue*/){
// user is entering some data...
},
inputDone : function(newValue/*, oldValue*/){
// user finished entering data
var ref = firebase.database().ref("actors-search-index");
$("#spinner").show();
search(ref, newValue, function(){
$("#spinner").fadeOut("fast");
});
}
});