Does anyone have any ideas for this issue?

On Sep 1, 4:49 am, Mil <formboardem...@wdoenterprises.com> wrote:
> Hi,
>
> I am trying to use this 
> autocompletehttp://docs.jquery.com/Plugins/Autocomplete
> but I'm having some issues with it.  I'm trying to create a simple tag
> autocomplete feature.
>
> This is what I want to type (Example 1)
> TextArea: Cake, Ca, Caldren, Calimari,
>
> This is what I get (Example 2)
> TextArea: Cake, Cake, Caldren, Calimari,
>
> In Javascript, my var data = ["Cake", "Caldren", "Calimari"];
>
> As you can see, I cannot type "Ca" because the information will
> autofill to "Cake" every time I type a comma.  The only way I can
> avoid this is to do something very un-user friendly.  That is to type
> "Ca" then press space and then type my comma.  That's the only way I
> can do it to make Example 1 work.
>
> This is my code:
> jQuery("#TagBox").autocomplete(data, {
>                 multiple: true,
>                 highlight: false,
>                 multipleSeparator: ", "
>             });
>
> What am I doing wrong?

Reply via email to