Link to home
Start Free TrialLog in
Avatar of TonyTone1
TonyTone1

asked on

Scriptaculous Autocomplete trigger search without typing

Hi I am using Scriptaculous' Autocompleter. I want the autocomplete text box to also act like a drop down. So right now when i type something it displays a list of matches (suggestions) and i can cursor down to select whatever i see fit. I want to be able to click on the text box and display the FULL list of results without having to type in some text first.

Anyone know how?
Avatar of bdichiara
bdichiara
Flag of United States of America image

You just need to create a function that triggers your element onFocus of the text input. Then all you have to do is pre-populate your autocomplete element with everything you want the user to see if it's blank.
Avatar of TonyTone1
TonyTone1

ASKER

Yes, I understand  the theory, I was looking as to something more practicle, like a code sample.
ASKER CERTIFIED SOLUTION
Avatar of bdichiara
bdichiara
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Forced accept.

Computer101
EE Admin