Validating Mandatory Input Boxes Using Javascript only
<p>I wanted to know what would be the best method to validate (to ensure that all 4 of the input boxes are not blank)?</p>

<pre><code>&lt;html&gt;

  &lt;head&gt;&lt;/head&gt;

  &lt;body&gt;
    &lt;input type="text" id="i1"&gt;
    &lt;input type="text" id="i2"&gt;
    &lt;input type="text" id="i3"&gt;
    &lt;input type="text" id="i4"&gt;
  &lt;/body&gt;

&lt;/html&gt;
</code></pre>
