During some research I stumbled upon the following thread where someone introduced using a repeater to have a dynamic auto suggest field (one that actually shows suggestions based on what you type, instead of always the same suggestions): Auto-Suggest
I liked the approach and figured it could be improved a bit more. Just wanted to share what I built in case it might be helpfor for others.
What it does:
[li]Uses a list of all countries in the world as an example. Simply change the repeater data to something that makes sense for your application.[/li][li]Limited to showing 5 items. Change that via the paging options of the repeater.[/li][li]It finds any items that contain the text you type in, no matter where (start, middle, end of string).[/li][li]The typed text is highlighted in bold.[/li][li]The suggestions are not case sensitive, but the shown suggestions adapt to show upper or lower case letters.[/li][/ul]
Feedback and improvements are also welcome.