title: Javascript validation for multiple textboxes
body: <p>I am having some trouble figuring out how to validate my textboxes using js.  I have 10 textboxes, the user can fill out any number 1-10, but cant fill out 0.  Here is the js that I have written, but it only returns true if all 10 textboxes are filled, rather than just checking if one is filled.</p>
  
  <pre><code>    function submitIt() {
      if (document.isForm.Student_ID.value == null) {
          alert ("You must enter a Colleague ID.");
          return false;
      } else {
          return true;
      }
  }
  </code></pre>
  
  <p>And here is the form.....</p>
  
  <pre><code>&lt;form name="isForm" onSubmit="return submitIt()"&gt;
      &lt;input name="Student_ID" type="text" id="idField1" /&gt;
      &lt;input name="Student_ID" type="text" id="idField2" /&gt;
      &lt;input name="Student_ID" type="text" id="idField3" /&gt;
      &lt;input name="Student_ID" type="text" id="idField4" /&gt;
      &lt;input name="Student_ID" type="text" id="idField5" /&gt;
      &lt;input name="Student_ID" type="text" id="idField6" /&gt;
      &lt;input name="Student_ID" type="text" id="idField7" /&gt;
      &lt;input name="Student_ID" type="text" id="idField8" /&gt;
      &lt;input name="Student_ID" type="text" id="idField9" /&gt;
      &lt;input name="Student_ID" type="text" id="idField10" /&gt;
      &lt;input name="SUBMIT" type="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I realize that I could change all of the names, and check each one, but I am trying to avoid that much clutter in my code, and am curious the best way to do this.  Any help is appreciated, thanks!</p>