Disabling and enabling multiple elements in a form

admin

Administrator
Staff member
We are trying to get elements to be enabled when we hit a radio button. If we have just one element, it works great. If we have more than one, it doesn't work. What we are trying to do is use a function and pass in the element name such as
Function func1(element)[
document.form2.element.disabled=true;
]

Is this possible to do it this way? Should we be trying to build an array of the element names to do it that way? If so, how should the document.formname.elementname.disabled = true or false statement look like?
 
Back
Top