Posted by deko on 08/23/06 18:56
> Maybe adding a
>
> <option value-"">select</option>
>
> option at the top of the list
That seems to be the only way around this limitation of the element.
Unfortunately, due to other circumstances, I cannot regenerate the entire select
element (putting the selected option on top) with PHP on post back. So I am
using this:
<form name="bgcolor" action="http: / /www . example . com/ks032/?p=49"
method="post">
<select name=color onChange="bgcolor.submit()">
<option selected value=default>select background color</option>
<option value=white>white</option>
<option value=yellow>yellow</option>
<option value=gray>gray</option>
</select>
</form>
The problem I have now is the width of the combo box. The text 'select
background color' gets truncated because the combo box is too narrow. I tried
this:
<select name=color width="60" onChange="bgcolor.submit()">
and this:
<form name="bgcolor" width="60" action=" ... " method="post">
but no luck.
How do I set the width of that combo box??
Thanks in advance.
Navigation:
[Reply to this message]
|