access components through string variable

wxdqz

New Member
hi!
i have a string variable that holds the name of a component and i want access this component like this:

document.form1.[componentname].disabled=true

componentname is the string variable.

thanks in advance
 
Back
Top