View Full Version : How to get scoll bar top and bottom positions of a listbox ?

05-12-2009, 06:03 AM
Hi All,

In general cases, in a drop down list box if we type something it finds the corresponding match. The first match will be always bottom of the list box. But I want to make the matched element as top of the list box rather than bottom of it. As I understand the problem, we can do this by setting scroll top position of list box.

Please somebody tell how to get scroll bar top and bottom values of a list box. (This could be happen before onSelect or onChange events, because once these events are fired the scroll position is setting to 0.)

Thanks in advance !!