Solved

Force a SELECT list width?

Posted on 2000-03-06
4
358 Views
Last Modified: 2008-02-01
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
Comment
Question by:dmetzler
  • 3
4 Comments
 
LVL 8

Expert Comment

by:xabi
Comment Utility
Note that this doesn't occurs on NS.
0
 
LVL 8

Accepted Solution

by:
xabi earned 100 total points
Comment Utility
Here goes the code:

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

xabi
0
 
LVL 8

Expert Comment

by:xabi
Comment Utility
You can get more info here:

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

xabi
0
 

Author Comment

by:dmetzler
Comment Utility
Thanks!

Don
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now