Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Setting the size/width of a select control.


  • From: elmuchacho at gmail.com (Laurent Muchacho)
  • Subject: [Javascript] Setting the size/width of a select control.
  • Date: Fri Oct 14 10:58:36 2005

Hi Matt,

You can simply change the width of select by changing the width style value

document.getElementById('mySelect').style.width=100 + 'px';

Found more examples in the url below
http://www.expressive-media.co.uk/examples/form/select/size.htm

Regards

Laurent



----- Original Message ----- 
From: "Matt Barton" <javascript@xxxxxxxxxxxxxx>
To: "[JavaScript List]" <javascript@xxxxxxxxxx>
Sent: Friday, October 14, 2005 3:46 PM
Subject: [Javascript] Setting the size/width of a select control.


> Hi,
>
> Is there any way to dynamically control the size/width of a <select> 
> control?  It seems to be something so simple, that I'm amazed I can't find 
> anything in my books.
>
> I hope I'm missing something staggeringly obvious ...
>
> Thanks
>
> Matt
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript