Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help on Selection box

Status
Not open for further replies.

transtech

Programmer
Aug 21, 2001
23
0
0
US
Hi all,

I have two selection boxes. The second one is empty. If you select
on the list of the first one, it will move them to the second one.

Now the problem is that on IE the width of the selection box will automatically
be adjusted, but on netscape it doesn't. Is there anyway that i can set it???
Please help anybody if you know how....

thanks,
Transtech
 
maybe instead of nothing in the second SELECT put enough non-breaking spaces to give the width you will want.

<OPTION>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</OPTION>
 
a) You could scan your_box.options to find the longest string and then

b) you initialize your_box.value with (max_length * '-').

It is simple with a javascript.

X-) Split.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top