How do i use JQuery Autocomplete for multiple words -


I have an autocomplete field and I'm wondering how can I use it for many words? When I type the first word it works right, but when I type space in another word, then it returns two words back to the server and the results are wrong!

e.g. When I type two words,

'java javascript'

The first word 'java', auto-complete works well, pull the list

But when I send space and type javascript, autocomplete 'java + javascript' to my Ajax function

Any ideas how to fix this?

It seems that you can not, built in the implementation it does not support - you can see The above links: "Not part of a stable release or distribution"

However, I have downloaded and used external version, available:

It's a bit bigger, but the usage is exactly the same, you have to change anything, for donation options, add to the options {multi: true}

Update

JQueryUI is now updated to the latest version make this answer obsolete. An advanced example can be found here


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -