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
Post a Comment