JQuery Validation dates
<p>Im trying to get my form to validate...so basically its working, but a little bit too well, I have two text boxes, one is a start date, the other an end date in the format of mm/dd/yyyy</p>

<p>if the start date is greater than the end date...there is an error <br/>
if the end date is less than the start date...there is an error <br/>
if the start date is less than today's date...there is an error</p>

<p>The only thing is when I correct the error, the error warning is still there...here is my code:</p>

<pre><code>// Validate Date Ranges
            if ($(this).val() != '' &amp;&amp; dates.not(this).val != '') {
                if ($(this).hasClass("FromCal")) {
                    if (new Date(testDate) &gt; new Date(otherDate)) {
                        addError($(this));
                        $('.flightDateError').text('* Start date must be earlier than end date.');
                        isValid = false;
                        return;
                    }
                }
                else {
                    if (new Date(testDate) &lt; new Date(otherDate)) {
                        addError($(this));
                        $('.flightDateError').text('* End date must be later than start date.');
                        return;
                    }
                }
            }
</code></pre>

<p>and here are the two text boxes:</p>

<pre><code>&lt;div id="campaign_start" style="display: inline-block"&gt;
                &lt;label class="date_range_label"&gt;from:&lt;/label&gt;  
                &lt;asp:TextBox ID="FromCalTbx" runat="server" Width="100px" CssClass="FromCal editable float_left required" /&gt;
              &lt;/div&gt;
              &lt;div id="campaign_end" style="display: inline-block"&gt;
                &lt;label class="date_range_label"&gt;to:&lt;/label&gt;
                &lt;asp:TextBox ID="ToCalTbx" runat="server" Width="100px" CssClass="float_left optional"/&gt;
&lt;/div&gt;
</code></pre>

<p>PS - <br/>
testDate is the start Date<br/>
otherDate is the end Date</p>
