or Create a profile
AutoSuggest jQuery Plugin →
15 Jun, 2011 01:57 PM
Thank you for a beautiful plugin. However, I noticed a bug and also
two missing features.
I find it strange that no one else has noticed the bug before.
Either way, I attach my edited file and hope it will be of use to
The bug: It seems that even if the user removes
all items (pressing backspace repeatedly for example), the hidden
input field still keeps the id one item. This is because of how the
code tries to match for example ",12," in the value_input. This
does of course not match the left-most value. I fixed this by
prefixing the value with "," before doing the matching.
Feature 1 - Option: Not allowing free text
items: I added an option called "allowFreeText" which, if
set to false, forces the user to choose an item from the list. I.e.
the user can not type "alksnfklasnfl" and press tab.
Feature 2 - Option: Select first item: I also
added an option call "selectFirst" which, if set to true,
automatically selects the first item that is matched. This makes it
much faster to input many items.
Other than this, the plugin is excellent.
on 23 Jun, 2011 03:47 PM
I also noticed this bug I found strange that nobody noticed
Thanks a lot for your bug fix, really appreciated!
Formatting help /
(switch to plain text)
(switch to Markdown)
You can attach files up to 10MB
If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.
A conversation has been started with the Drew Wilson staff to resolve this discussion.
This discussion is private.
Only you and Drew Wilson support staff can see and reply to it.
This discussion is public. Everyone can see and reply to it.
You can use Command ⌘ instead of Control ^ on Mac
Powered by Tender™.