Melissa,

Tried this under IE and it doesn't work.  I guess I'll have to add a hidden
field and pass the value I want through it - that way I can disable the
select box and still send the value through the request header.

Thanks!

Jerry Jalenak
Development Manager, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


> -----Original Message-----
> From: Melissa L Kelley [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 29, 2003 11:39 AM
> To: Struts Users Mailing List
> Subject: RE: [OT - JavaScript] Setting value on a <html:select/>
> 
> 
> On Wed, 29 Oct 2003, Jerry Jalenak wrote:
> 
> > Melissa / James -
> >
> > Thanks for the replies.  It does have something to do with 
> setting the
> > 'disabled' attribute to 'true'.  Unfortunately, per W3C 
> spec, the <select/>
> > tag doesn't support a 'readonly' attribute, only a 
> 'disabled' attribute.  Do
> > I need to disable the options?  or is there a better way to 
> not allow a user
> > to select a different option?
> >
> >
> 
> You could set all the options but the one you want selected 
> to disabled.
> I think how it will work in Mozilla is the select menu will still be a
> drop down, but all the disabled options will be grayed out and not
> selectable. I don't think IE will support this though. Of 
> course, since
> you'd be validating on the server side, users who could still select
> something else would get a nice message telling them that 
> valueB can only
> be foo when valueA is bar, yes?
> 
> 
> ------------------------------
> Melissa L Kelley
> [EMAIL PROTECTED]
> www.stuology.net
> ------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

This transmission (and any information attached to it) may be confidential and
is intended solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient or the person responsible for
delivering the transmission to the intended recipient, be advised that you
have received this transmission in error and that any use, dissemination,
forwarding, printing, or copying of this information is strictly prohibited.
If you have received this transmission in error, please immediately notify
LabOne at the following email address: [EMAIL PROTECTED]


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

Reply via email to