jQuery..For DatePicker Select validation please hep me
<p>When I select date image i get the date in the text box.Suppose i am not select date, clicking the submit button it is giving the error message,but when i select the date still the message is there,when i select the submit button at the time the message is going..</p>

<p>Please try to help me..   </p>

<p>MyPage.html</p>

<pre><code>    &lt;script src="jquery.validate.js" type="text/javascript"&gt;&lt;/script&gt;
    //some code

    rules:{ 
                           startdate:{
                    required:true,
                    date:true
                }

    },
    messages:{
                     startdate:
                {
                    required:"Select Date"
                    date:"Invalid date"

                }
    &lt;tr&gt;
        &lt;td height="38"&gt;Start Date&lt;/td&gt;
        &lt;td&gt;
          &lt;input type="text" name="startdate" id="startdate" &gt;
          &lt;a href="javascript:NewCal('startdate','MMddyyyy')"  &gt; &lt;img src="cal.gif" width="16" height="16" border="0" alt="Pick a date" /&gt;  &lt;/a&gt;           

          &lt;/td&gt;
        &lt;td height="38"&gt;Specification of Deliverables / Description of Services&lt;/td&gt;
        &lt;td&gt;&lt;input type="text" name="specification" id="specification" &gt;&lt;/td&gt;
    &lt;/tr&gt;

    //some code
    &lt;input  type="submit"  value="Submit"/&gt;
</code></pre>

<p>When I select date image i get the date in the text box.Suppose i am not select date, clicking the submit button it is giving the error message,but when i select the date still the message is there,when i select the submit button at the time the message is going..</p>

<p>Please try to help me..</p>

<p>Thanks.</p>
