1.0.1 • Published 8 years ago

watch-input v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago
    $("#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");
        });
      }
    });
1.0.1

8 years ago

1.0.0

8 years ago