In Scriptaculous Ajax autocomplter it chooses the first entry by default . how do i stop it from choosing the first option by default??
+1
A:
In controls.js of the Scriptaculous library, on line 286: change "this.index = 0;" to "this.index = -1;". That will fix your problem.
It's a pain that there's no option along the lines of { autoSelectFirst: false }. Hopefully in a future release :)
On another note, you might want to have a look at: http://docs.jquery.com/Plugins/Autocomplete
which lets you disable selecting the first option out of the box.
karim79
2009-03-23 14:04:38
Thanks a lot...it works...
Arkid
2009-03-24 04:53:30