drewwilson / AutoSuggest

jQuery AutoComplete Plugin
http://code.drewwilson.com/entry/autosuggest-jquery-plugin
86 stars 46 forks source link

How to reset the widget #7

Open django-rdf-tools opened 13 years ago

django-rdf-tools commented 13 years ago

I use the input in an ajax submit, so I'd like to clean the widget correctly after submit. the generated HTML is quite complex, do you have advice on which container I should empty or destroy ?

bertpareyn commented 11 years ago

The way in which we do it is we re-render the template where the autosuggest input field is defined and then re-initialize it. I haven't really investigated if there is a reset function since this workflow fitted in our application structure.