is this a bug in the jquery autosuggest plugin
i am using this plugin as an autocomplete suggestion box but one issue is that it allows me to enter the same tag more than once. For example, if you
- Use the example and type in "m" and choose Mick Jagger and then select that item (which adds it as a tag)
- Then type in "m" again, Mick Jagger still shows up on the list. If you select it from the dropdown, it will add it to the textbox again.
- Then type in "m" again and Mick Jagger is no longer in the dropdown list.
This doesn't make sense to me why it would allow you to duplicate it once but not more than once. For all further entries it does seem to eliminate existing items from the开发者_如何学C list so you can't have duplicate entries.
Is this just a bug in the jquery plugin?
Here is a picture of me having the ability to enter this same tag twice.
I have to revert my previous assessment, there is no bug.
It just dosen't work with mick jagger in the sample.
Maybe there are 2 mick jaggers in the sample data or something like that.
If you try with any of the other names you will not get this issue.
Btw. in FF3 for me it works even with Mick Jagger, these seems to be something wrong with the sample code.
精彩评论