L
Loane Sharp
Hi there,
I have several drop-down boxes in my form, and when I click on the drop-down
box to reveal the options, sometimes the list of options opens upward (above
the box) and sometimes downward (below the box), depending on the number of
options in each drop-down. Apparently there is a default mechanism at work
that displays the options in a visible part of the screen.
This looks very messy ... some boxes open up, some down, some in the middle
.... so within JavaScript I use the following ~
form1.select1.options.length = "8";
~ to limit the number of options displayed in a particular list to 18.
However I lose the scroll bars in the drop-down list when I do this.
Is there an alternative way to do this, or is there a way to show the scroll
bars?
Cheers
Loane
I have several drop-down boxes in my form, and when I click on the drop-down
box to reveal the options, sometimes the list of options opens upward (above
the box) and sometimes downward (below the box), depending on the number of
options in each drop-down. Apparently there is a default mechanism at work
that displays the options in a visible part of the screen.
This looks very messy ... some boxes open up, some down, some in the middle
.... so within JavaScript I use the following ~
form1.select1.options.length = "8";
~ to limit the number of options displayed in a particular list to 18.
However I lose the scroll bars in the drop-down list when I do this.
Is there an alternative way to do this, or is there a way to show the scroll
bars?
Cheers
Loane