Sorry guys! i've known how to do this! just set the multiple option to
True and multipleSeparator to a character of your choice.

example:

$("#tagnames").autocomplete("/tags/filter", {
        max: 6,
        highlightItem: true,
        multiple: true,
        multipleSeparator: " ",
        matchContains: true,
        scroll: true,
        scrollHeight: 300
});

Am using this version of JQuery Autocomplete:
http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/

Thanks,

Gath

On May 4, 3:47 pm, Gath <[email protected]> wrote:
> I have an autocomplete field and am just wondering how can i use it
> for multiple words? When i type the first word it works perfect, but
> when i space and type in the second word, its sends the two words back
> to the server and of course the results are wrong!
>
> eg. when i type the two words,
>
> 'Java javascript'
>
> the first word 'Java', autocomplete works well, pull the list.
>
> but when i space and type javascript, autocomplete sends 'Java
> +javascript' to my ajax function.
>
> Any ideas how to fix this?
>
> Gath

Reply via email to