1st Item in Auto Suggest List shows up twice in Selection

pm kumaar's Avatar

pm kumaar

18 Apr, 2011 10:17 PM

Hi,

Your plugin is wonderful. Thanks.

By the way, I am not sure if this problem was raised before.

Let's assume that there are 6 Items in the data list.
The first item can always be selected twice.
The default behavior I reckon should be to allow only 1 selection per item.
Items 2 to 5, correctly allows one-time selection.
So this anomaly only is "revealed" for the very first item in the list.

This problem can be easily reproduced on your home page Autosuggest example.
If it is possible, a quick fix would be most appreciated.

Thanks a lot.

pmkumaar

  1. 1 Posted by jSuggest on 20 Apr, 2011 07:18 PM

    jSuggest's Avatar

    @Kumaar

    I made some customization of this plugin, and also fixed many bugs.

    You may want to check it here.

    The code: http://jsbin.com/asahe5/10/edit

    The demo: http://jsbin.com/asahe5/10/edit#preview

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

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.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac