struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frances Aleah Z. de Guzman" <adeguz...@ingenium.com.ph>
Subject disabling form element
Date Mon, 30 Jun 2003 21:39:55 GMT
can anyone tell me how to disable a form element via javascript. i have a 
combo box and i want to use the onchange event to disable a certain 
textbox...

<nested:select property="paramType" onchange="javascript:change()"> 
       <html:optionsCollection name="lookup" property="applications"/> 
</nested:select> 

the textbox is:
<nested:text property="remarks" size="50" />

the javascript:
function change(){
  document.forms[0].remarks.disabled=true;
}

is there anything wrong with my code?
-- 
Frances Aleah Z. De Guzman
SA/Programmer
Ingenium Technology, Inc.
http://www.ingenium.com.ph

Disclaimer :
This message is intended only for the named recipient. If you are not the
intended recipient you are notified that disclosing, copying, distributing
or taking any action in reliance on the contents of this information is
strictly prohibited.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message