Auto_complete always selects the first item, can i prevent this?

if you use google or yahoo’s search autocomplete, you’ll see that they
do not select the first item automatically. this way, if you don’t
choose an item, and hit return, the return submits the form. is there
a way to make this work with auto_complete?

in other words, i’d like it to behave like this- user types in some
text, auto_complete div gets filled with list, nothing is hightlighted
in the list until the user mouses or clicks the down key. if
something is selected, hitting return selects that item, if not,
hitting return submits what they typed.

any ideas? hopefully this is something simple.

thanks,
dino

i did find this solution, but i’m not crazy about it:

https://prototype.lighthouseapp.com/projects/8887/tickets/116-ajaxautocompleter-default-selects-first-item

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs