Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Filter List box depending on the Text Box value  RSS feed

 
Chinni Bujji
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a list box with some values
when i enter a single character in the text box the list box should get filtered and then give me the list with that starting letters

ex: F
list is Four
Five
Fine
Future

like this

any suggestions or sample code will be of great help

thank you
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The term normally used for this type of control is a "typeahead" list or control, and you need to use AJAX to make it work. My suggestion would be to find a JavaScript library that has a pre-built typeahead control that you can just plug into by providing the server-side portion. Just Google "AJAX typeahead" and you'll see lots of alternatives. The one I've used is scriptaculo.us.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!