How to get scroll bar top and bottom posistions of a list box ?
843844May 11 2009 — edited May 11 2009Hi 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.) [Note: I am using <h:selectOneMenu> component from jsf/html]
Thanks in advance !!