Is it possible to build an array with the names of form inputs and then use a for loop with the array to validate each input?<BR><BR>I Tried this but it doesn&#039t work:<BR>var myArray = new array();<BR>myArray[0] = "input1";<BR>myArray[1] = "input2";<BR><BR>for (input=0; input&#060;2; input++) {<BR> if (document.myArray[input].value == "") {<BR> // do something<BR> }<BR>}<BR><BR>Anyone know what I&#039m doing wrong or know a work around?<BR><BR>Thanks - I am getting desperate!<BR>