Hi,
This is my first post, so I'm a bit nervous - but here goes:
I am making use of the DHTML concept of setting a value to an element using
the input name of the element, e.g.:
document.forms[0].object.value = "test"; (where 'object' is the
input name of the element)
My question is: can the element reference be a variable? I have placed the
above line of code within a JavaScript function, to which I am passing a
variable input name, but the code does not work when I insert a variable
name in place of 'object' - it only works when I place the absolute input
name of the element.
Is there any way around this - how can I use a variable name to set the
value of an element?
Thanks in advance,
- Ivan
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/