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: javascript at mattbarton.org (Matt Barton)
- Subject: [Javascript] Setting the size/width of a select control.
- Date: Fri Oct 14 11:02:24 2005
Excellent, thanks very much.
Matt
Laurent Muchacho wrote:
> 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
>
>
> _______________________________________________
> Javascript mailing list
> Javascript@xxxxxxxxxx
> https://lists.LaTech.edu/mailman/listinfo/javascript
> --
> This email has been verified as Virus free
> Virus Protection and more available at http://www.plus.net
>
- References:
- [Javascript] Setting the size/width of a select control.
- From: Matt Barton
- [Javascript] Setting the size/width of a select control.
- From: Laurent Muchacho
- [Javascript] Setting the size/width of a select control.
- Prev by Date: [Javascript] Setting the size/width of a select control.
- Next by Date: [Javascript] Setting the size/width of a select control.
- Previous by thread: [Javascript] Setting the size/width of a select control.
- Next by thread: [Javascript] Setting the size/width of a select control.
- Index(es):