Combobox width - change using javascript

B

bboyle18

Hi,

I have a combobox that is a specific width that must not be adjusted.
However, the options in this combobox are very wide and therefore I
cannot see the whole text of the option.
In order to fix this I would like to be able to adjust the width of the
options to make them wider when I click on the drop down box. Is this
possible?

Thanks,

Chris
 
T

Thomas 'PointedEars' Lahn

I have a combobox that is a specific width that must not be adjusted.
However, the options in this combobox are very wide and therefore I
cannot see the whole text of the option.
In order to fix this I would like to be able to adjust the width of the
options to make them wider when I click on the drop down box. Is this
possible?

If you mean a standard select control with "combobox"? No. (JS cannot
do what CSS cannot do.) Make the text shorter, try the `title' attribute
of the `option' element or use radiobuttons.


HTH

PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top