The auto_complete_for dealio function from script.aculo.us is great for everyone, but is there any way I can selectively disable the fact that it always automatically selects the first item in the list?
The problem is that if I want to print my own record, which is new and new, I do not want the first item in the list to be automatically selected. The reason is that when I TAB from the field, it selects and fills the text field with this first element.
I got around this a bit by making the first item on the list the same as what I am typing, but that is not ideal either, because the auto_complete list is not always updated with every keystroke, depending on how fast I type. I tried to set the refresh rate of the list to the lowest value (1 millisecond), but did not leave.
What I really want is an option in "auto_complete_for" that does not select this first element at all - just like Google Instant does not automatically select the first suggested search phrase - you need a down arrow to select one.
Maybe I can do this through an HTML option that I am missing?
ajax ruby-on-rails scriptaculous
jefflunt
source share