Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 366
  • Last Modified:

Force a SELECT list width?

I have a JavaScript that can dynamically add/delete from an HTML SELECT list.  However, the width of this control changes to accommodate the widest text contained within it.

Is there a way to force the width of a SELECT control via JavaScript?

Thanks,

Don
0
dmetzler
Asked:
dmetzler
  • 3
1 Solution
 
xabiCommented:
Note that this doesn't occurs on NS.
0
 
xabiCommented:
Here goes the code:

<select name="myselect" size="1" style="width: 20mm">

xabi
0
 
xabiCommented:
You can get more info here:

http://developer.irt.org/script/858.htm

xabi
0
 
dmetzlerAuthor Commented:
Thanks!

Don
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now