Menu
I’m sure this is possible but I’m having a hard time doing it. I need to be able to find a DOM element in a form via a function. i.e.
[CODE]
function disableInput(control)
{
alert(document.myForm. + control + .length); //this doesn’t work
}
of course the alert isn’t really what I’m looking to do… I know if I put
[CODE]alert(‘document.myForm.’ + control + ‘.length’);
that would spit out what I’m looking for but I need this to work in the code. I tried wrapping that code into a var but then the ‘type’ is off.
It’s probably something simple I’m missing.