javascript textbox validation
<p>i have a textbox in a jsp page</p>

<pre><code>&lt;td&gt;&lt;label for="customer.fcDate" class="desc"&gt;&lt;bean:message key="label.customer.fcDate" /&gt;&lt;/label&gt;&lt;/td&gt;
            &lt;td&gt;
                &lt;table&gt;&lt;tbody&gt;&lt;tr&gt;
                        &lt;td&gt;&lt;input type="Text" name="customer.fcDate" id="customer.fcDate" style="customer.fcDate" class="SingleLineTextField" maxlength="10" size="15" tabindex="1" &gt;&lt;/td&gt;
                &lt;td&gt;&lt;a href="javascript:NewCal('customer.fcDate','mmddyyyy')"&gt;&lt;img align="middle" src="Images/cal.jpg" width="20" height="20" border="0" alt="Pick a date"&gt;&lt;/a&gt;&lt;/td&gt;

                &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;
            &lt;/td&gt;
</code></pre>

<p>now i want to check that the box must not be null using javascript. how to do it?</p>

<p>can you explain it little more?</p>

<pre><code>     &lt;td&gt; &lt;table&gt;
 &lt;tbody&gt;&lt;tr&gt; 
&lt;td&gt;
&lt;input type="Text" name="customer.fcDate" id="customer.fcDate" style="customer.fcDate" class="SingleLineTextField" maxlength="10" size="15" tabindex="1" onblur="nullcheck()"&gt;
&lt;/td&gt; 
&lt;td&gt;&lt;a href="javascript:NewCal('customer.fcDate','mmddyyyy')"&gt;
&lt;img align="middle" src="Images/cal.jpg" width="20" height="20" border="0" alt="Pick a date"&gt;&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt; &lt;/td&gt;
</code></pre>

<p>in this way?????</p>
