[Javascript] dropdown and readonly

Iztok Polanic iztok.polanic at amis.net
Thu Oct 28 11:21:15 CDT 2004


Hi!

Not exactly, but you put me on the right track. Tnx!

Bye,

Iztok

> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu]On Behalf Of jsWalter
> Sent: 28. oktober 2004 18:07
> To: [JavaScript List]
> Subject: Re: [Javascript] dropdown and readonly
> 
> 
> > Hi!
> >
> > Interesting prbolem. How to change dropdown to readOnly propertie?
> 
> can't. By definition, SELECT is READONLY, since a user can't modify its
> contents.
> 
> 
> > If I change it to disabled then the form (dropdown) is not
> > submited.
> 
> Right. By definition, DISABLED is not sent via FORM SUBMIT.
> 
> When I need to make a SELECT 'readonly' (as you say), I do it via JS and
> then insert the value I want into a hidden INPUT with the same name.
> 
> When the SELECT is not 'readonly', then the HIDDEN is DISABLED so its
> value (or lack there of) is not sent to the server.
> 
> Does that help?
> 
> Walter
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list