Accessing HTML input fields with javascript - spaces in input name
<p>I'm adding some javascript validation to a form. The form has fields that currently look like: </p>

<pre><code>&lt;input name="Employee Full Name" value="" type="text" id="Employee Full Name" size="30" maxlength="50" style="width:300px;"&gt;
</code></pre>

<p>I am trying to access the values of the fields, but I seem to be doing it incorrectly with the spaces in the input name, is there a way to escape?</p>

<pre><code>if (theForm.Employee Full Name.value == ""){   
   alert("Please enter a value for the \"Employee Full Name\" field.");     
   theForm.Employee Full Name.focus();   
   return (false);   
}
</code></pre>
