I have a form with a variable number of autocomplete fields that use the same select list. These fields are added and removed as needed. Whenever a parameter on the page is changed, I (try to) update the list for all the fields by first calling unbind() then autocomplete() with a new parameter added to the url.
$('input.foo').unbind().autocomplete(url?new_param=bar);
The problem is that unbind() does not seem to be unbinding. When I type in the input field, it fires off the entire history of autocomplete events.
I also tried flushCache to no avail.
How do I clear out the old events?
Thanks.