Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Filter dropdown list based on user entry:

Avatar

Former Community Member

Hi,

I have the list of 50 states of U.S in the dropdown list.

Ex: alabama

      alaska

      arizona

      arkansas

      lousiana

When user types "a" into the dropdown, the dropdown should expand automatically and list only alabama,alaska, arizona.

When user types "al", the dropdown should get further refined to alabama & alaska.

What I see is when user types "al", the list jumps to lousiana and I do not want it.

I think i should struggle with javascript in writing on change event of dropdown. It would be great if any one have already got the solution for filtering the list based on what user types in every letter.

Thanks,

kc

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi,

Bruce has a very good explanation on this.

This thread may help you. http://forums.adobe.com/thread/518910?tstart=0

Thanks,

Bibhu.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 9

Hi,

Bruce has a very good explanation on this.

This thread may help you. http://forums.adobe.com/thread/518910?tstart=0

Thanks,

Bibhu.

Avatar

Former Community Member

Excellent. That post solved my problem.

Thanks a lot Bibhu.