Just a note that there are some significant differences between disabled and
read-only controls, even if a browser renders them with the same visual
appearance. For example, disabled controls are never included in form
submissions.

Quoting Henrique VIECILI <[EMAIL PROTECTED]>:

> I think it will work:
> 
> <select id="xxx" name="xxx" disabled>
>     <option value="XX" selected> XX </option>
> </select>
> 
> or in javascript:
> 
> document.getElementById("xxx").disabled = 'true';
> 
> Henrique Viecili
>   ----- Original Message ----- 
>   From: Kris Schneider 
>   To: Struts Users Mailing List 
>   Sent: Friday, July 02, 2004 1:16 PM
>   Subject: Re: Why <html:select ... doesn support readonly attribute?
> 
> 
>   If it's not in the HTML 4 spec (which, in this case, it isn't), it's not
>   supported by the Struts taglibs:
> 
>   http://www.w3.org/TR/html4/interact/forms.html#h-17.6
> 
>   Quoting Zsolt Koppany <[EMAIL PROTECTED]>:
> 
>   > Hi,
>   > 
>   > I would like to use <html:select for a readonly property but cannot find
> the
>   > readonly property. What can I do?
>   > 
>   > I use struts-1.1.
>   > 
>   > Zsolt
> 
>   -- 
>   Kris Schneider <mailto:[EMAIL PROTECTED]>
>   D.O.Tech       <http://www.dotech.com/>

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to