Issue #17 new

Clear autocomplete does not clear hidden text on form submit

Anonymous created an issue

Clear autocomplete does not clear hidden id on form submit.

Comments (1)

  1. Anonymous

    Clear autocomplete does not clear hidden id on form submit. Patch

    /jquery_autocomplete.js ===
    @@ -25,7 +25,8 @@
             input.result(function(event, data, formatted) {
                 hidden_input.val(data.split('|')[1]);
             });
    -        form = $("form:first");
    +        //form = $("form:first");
    +        form = input.parents('form');
             form.submit(function() {
                 if (!input.val()) {
                     hidden_input.val('');
    
  2. Log in to comment