Is this possible: document.form.array[i].value?
<p>I have not found an answer to this online nor does the debugger tell me enough to understand what alternatives I might use.  <strong>Is it possible to post the "fill" value into the text boxes using an array to the effect I'm trying to use below?</strong>  I could write document.form.a.value = fill; document.form.b.value = fill; etc., but a loop and array seems more more simplified and efficient.
Here's a simplified version of the code that's giving me an error:</p>

<pre><code>&lt;script type="text/javascript"&gt;
function postData() {
var fill = 0.0;
var txtBoxLetter = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"];
    for (var i = 0; i &lt; txtBoxLetter.length; i++)   {
        document.form.txtBoxLetter[i].value = fill; // Error on this line
    }
}
&lt;/script&gt;

&lt;form name="form" method="" action=""&gt;
&lt;input type="text" name="a" size="1" readonly="true"&gt;
&lt;input type="text" name="b" size="1" readonly="true"&gt;
&lt;input type="text" name="c" size="1" readonly="true"&gt;
&lt;input type="text" name="d" size="1" readonly="true"&gt;
&lt;input type="text" name="e" size="1" readonly="true"&gt;
&lt;input type="text" name="f" size="1" readonly="true"&gt;
&lt;input type="text" name="g" size="1" readonly="true"&gt;
&lt;input type="text" name="h" size="1" readonly="true"&gt;
// etc.
&lt;/form&gt;
</code></pre>

<p>Thanks for the help!</p>
