Click to See Complete Forum and Search --> : Need help using JS to fill values in vbscript dynamically created form


hucktang
08-27-2003, 05:18 PM
I have written some simple javascript to fill down values in a text box form column with the top column value based on a known number of values by clicking a checkbox. However i have a vbscript dynamically created the form which outputs a number of rows based on user input. Having all the text form names the same obviously caused problems. I can number the text form names to make them unique. How can I dynamically have the javascript copy the values throughout all of the dynamically created rows?

gil davis
08-28-2003, 05:24 PM
There is a very handy construct in javascript:
for ... in
It allows you to iterate through arrays without having to know the names or the array length.