[thelist] javascript variable in DOM selector

Aaron Vegh aaronvegh at gmail.com
Tue Jun 17 06:09:13 CDT 2008


Hi there,

> Syntax issue. The way you have it written, it is looking for a
> property named sourceName on the form object. Try
> ...forms[0].elements[sourceName].style...

This worked, as did the first suggestion from Anthony. Thanks to you both! :-)

Cheers!
Aaron.

-- 
Aaron Vegh, Principal
Innoveghtive Inc.
P: (647) 477-2690
C: (905) 924-1220
www.innoveghtive.com
www.website-in-a-day.com



More information about the thelist mailing list