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: judah-fc at t8design.com (Judah Frangipane)
- Subject: [Javascript] Setting the size/width of a select control.
- Date: Fri Oct 14 11:16:24 2005
Hi Matt,
Set the style property. IE
< select name="select" style="width:800px"
onClick="this.style.width='400px'" >
< option >item 1< / option >
< option >item 2< / option >
< /select >
Then in javascript get a reference to the control and set the width again.
It's been a while since I've done this and I'm not at my home computer
let me know if you need more help.
Judah
Matt Barton wrote:
> 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
>
>
>
- References:
- [Javascript] Setting the size/width of a select control.
- From: Matt Barton
- [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] RE: Font size control bar
- Previous by thread: [Javascript] Setting the size/width of a select control.
- Next by thread: [Javascript] Page refresh only once - reg
- Index(es):