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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]