Using both dpDate and dpCompare class

Using both dpDate and dpCompare class

watermark is custom jquery applied to the input box.

I finally resolved my issue. Ended up not using classes in my fields and instead added the rules to the validate call.  Works like a champ.


I've assigned both of the above as classes on the both of my datepickers, however only the dpDate validation works.  Not certain what I've got wrong with this.

Any assistance would be appreciated.

Below are the versions I'm working with.

jQuery Validation Plugin 1.9.0
DatePicker Validation 1.0.1
Jquery 1.7.1

  1.             <tr>
                        <td style="text-align: right;">
                            <:label runat="server" ID="lbl_from_date" DefaultText="From Date:"/>
                        </td>
                        <td>
                            <input id="date_from" type="text" class="dpCompare dpDate"/>
                        </td>
                        <td style="text-align: right;">
                            <label runat="server" ID="lbl_to_date" DefaultText="To Date:" />
                        </td>
                        <td>
                            <input id="date_to" type="text" class="dpCompare dpDate"/>
                        </td>
                    </tr>


  1. $(function () {
  2.             $("#date_from, #date_to").datepicker({
                    minDate: "-30y",
                    maxDate: "+50y",
                    mask: "99/99/9999",
                    watermark: corpWeb.dateWatermark,
                    onClose: function () {
                        $(this).valid();
                    }
                })