Date Validation using JQuery Validation
<p>I'm trying to validate date using jquery validation. Included Javascript Library is:</p>

<pre><code>&lt;script type="text/javascript" src="&lt;?php echo base_url()?&gt;asset/jqueryui/ui/ui.core.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript" src="&lt;?php echo base_url()?&gt;asset/jqueryui/ui/ui.datepicker.js"&gt;&lt;/script&gt;
        &lt;script src="&lt;?php echo base_url()?&gt;asset/jquery/jquery.metadata.js" type="text/javascript"&gt;&lt;/script&gt;
        &lt;script src="&lt;?php echo base_url()?&gt;asset/jqvalidate/jquery.validate.js" type="text/javascript"&gt;&lt;/script&gt;
</code></pre>

<p>Supposed I have 3 input field. name, address, and date of bird and I use errorContainer to display error.</p>

<p>my javascript is:</p>

<pre><code>                &lt;script type="text/javascript"&gt;
                $().ready(function() {

                    var errorContainer = $('div.errorContainer');
                    // validate the form when it is submitted
                    var validator = $("#frm").validate({
                        errorContainer: errorContainer,
                        errorLabelContainer: $("ol", errorContainer),
                        wrapper: 'li',
                        meta: "validate",
                        rules: {
                            datepicker: {
                              required: true,
                              date: true
                            }
                          }
                    });
                });

                $(function(){
                    $("#datepicker").datepicker();
                });
                &lt;/script&gt;

&lt;form id="frm"&gt;
&lt;input type="text" id="name" name="name" class="field text {validate:{required:true}}"&gt;
&lt;input type="text" id="address" name="address" class="field text {validate:{required:true}}"&gt;
&lt;input type="text" id="datepicker" name="datepicker"&gt;
&lt;input type="submit"&gt;
&lt;/form&gt;
</code></pre>

<p>but It doesnt work for date validator.</p>

<p>I need your help. thanks</p>
