Two jquery datepicker instances in one control ASP.NET
<p>I have two text boxes that use the datepicker plugin on the same page.</p>

<p>I use the code below to set attributes for each by using their cssclasses, however the minDate for datepickerLatest does not seem to work on the calendar. It works fine for datepickerEarliest</p>

<pre><code>&lt;asp:TextBox runat="server" ID="tbEarliestDate" CssClass="datepickerEarliest"&gt;&lt;/asp:TextBox&gt;
</code></pre>

<p></p>

<pre><code>$(".datepickerEarliest").datepicker({
        dateFormat: 'dd/mm/yy',
        changeMonth: true,
        yearRange: '-100:+10',
        changeYear: true,
        maxDate: '17/08/2012'
    });

    $(".datepickerLatest").datepicker({
        dateFormat: 'dd/mm/yy',
        changeMonth: true,
        yearRange: '-100:+10',
        changeYear: true,
        minDate: '21/06/2012'
    });
</code></pre>

<p>Any help appreciated.</p>
