This is a discussion on textbox autocomplete scroll to - Mozilla ; Ciao all, any way I can programmatically scroll the drop-down associated with a textbox autocomplete (Firefox) to a desired item, so that the item is appearing as the first in the drop-down (even if it is actually the nth item)? ...
Ciao all,
any way I can programmatically scroll the drop-down associated
with a textbox autocomplete (Firefox) to a desired item, so that
the item is appearing as the first in the drop-down (even if it is
actually the nth item)? Something like:
textbox.popup.scrollTo(index);
or
textbox.popup.ensureVisible(index);
The only likely option I found was:
textbox.popup.selectedIndex = ...
to set the selected item, but unfort that has no effect
whatsoever (not even the selection....)
thanks for any help
marco