Bind dynatable search to onchange -


im using http://www.dynatable.com/ , there search input filtering data. problem works on hitting enter/losing focus etc , want use on every letter change.

you can change dynatable accomodate needs. @ line 1215 of jquery.dynatable.js(version 0.3.1), search performed on enter keypress. may change keyup without waiting enter key press. default code:

        $search         .bind(settings.inputs.queryevent, function() {           obj.queries.runsearch($(this).val());         })         .bind('keyup', function(e) {           if (e.which == 13) {             obj.queries.runsearch($(this).val());             e.preventdefault();           }         }); 

modified code:

        $search         .bind(settings.inputs.queryevent, function() {           obj.queries.runsearch($(this).val());         })         .bind('keyup', function(e) {           obj.queries.runsearch($(this).val());           e.preventdefault();         }); 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -