Solved

Force a SELECT list width?

Posted on 2000-03-06
4
362 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 8

Expert Comment

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

Accepted Solution

by:
xabi earned 100 total points
ID: 2590624
Here goes the code:

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

xabi
0
 
LVL 8

Expert Comment

by:xabi
ID: 2590627
You can get more info here:

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

xabi
0
 

Author Comment

by:dmetzler
ID: 2592091
Thanks!

Don
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

734 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