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?
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:08 AM > To: Struts Users Mailing List > Subject: Re: [OT - JavaScript] Setting value on a <html:select/> > > > On Wed, 29 Oct 2003, Jerry Jalenak wrote: > > > I've got two radio buttons on a form. If the user clicks > the second radio > > button, I need to force the value of a following <html:select/> to a > > specific value, and disable the select. So, using > JavaScript, on my radio > > button I fire an onclick event that run a real simple > javascript function. > > In this function I've tried using > > [...] > > When you say "disable the select", are you using the disabled > attribute > for the select tag to accomplish this? If so, then the value > of that form > element will not be sent with the HTTP request. If you want > them to not > change it, set it to readonly instead of disabled. > > > > 'Doh!' moment, but how do I do this? > > > > TIA! > > > > Jerry Jalenak > > > > ------------------------------ > 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]