risuiowa / rails-jquery-autocomplete

An easy and unobtrusive way to use jQuery's autocomplete with Rails 3 and later.
MIT License
212 stars 80 forks source link

:id_element does not work with multiple id's #70

Open pielambr opened 8 years ago

pielambr commented 8 years ago

When using :id_element and multiple:true on an input field, the targetted id_element field just seems to get cleared everytime. It works fine with single values.

<%= f.text_field :category_ids, id: 'category_ids' %>
<%= f.autocomplete_field :category_names, autocomplete_category_title_categories_path,
            :id_element => '#category_ids', 'data-delimiter' => ',', :multiple => true %>
mulite commented 6 years ago

Did you find a solution? I have the same Problem

helderasmoreira commented 5 years ago

I guess that there's not much movement around this. Any workaround? Any solution?