.net - Use JQuery to scroll ListBox (select box) to certain item -


I have a list box control that has enough items to list them with a scroll bar

< P> I would like the users to enter certain letters and scroll the ASP list box for the first option whose text starts with those letters.

I hope that works with the jQuery element provides some simple functionality or plug-ins, but so far, I've only seen those plug-ins that work with Scroll DIV Are there.

Is there a way to scroll an ASP list box a specified option?

Edit

As @ Alex Sexton said, you can only select an option through javascript and it will automatically scroll here Something simple is JQuery:

  $ ('# list box option: eq (6)'). Attr ('selected', 'selected');  

Automatically scroll your browser when the selected attribute is set to "selected" What you want to see is the element you want to see.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -