i am using this multi date selector it works fine the only problem is coming whenever i tyr to select next months data after selection of next month date its auto matically push me back to current month
<%--Date caelnder disable End--%>
<%--Date caelnder disable Start--%>
<script type="text/javascript">
function EnableDisableTextBox(chkPassport) {
var checkBoxList = document.getElementById("<%=CheckBox1.ClientID %>");
var txtPassportNumber = document.getElementById("<%=txtdatepicier.ClientID %>");
txtPassportNumber.disabled = chkPassport.checked ? true : false;
if (!txtPassportNumber.disabled) {
//txtPassportNumber.foc = us();
var today = new Date();
var dd = today.getDate();
txtPassportNumber.val = today.getDate();
}
}
</script>
<%--Multi Calender Date and script start--%>
<script type="text/javascript">
$(function () {
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth() + 1;
var yyyy = today.getFullYear();
today = mm + '/' + dd + '/' + yyyy;
document.getElementById('<%= txtdatepicier.ClientID %>').value = today;
$('[id*=txtdatepicier]').multiDatesPicker({
dateFormat: 'mm/dd/yy',
minDate: 0,
defaultDate: today
});
});
</script>
<link rel="stylesheet" href="https://cdn.rawgit.com/dubrox/Multiple-Dates-Picker-for-jQuery-UI/master/jquery-ui.multidatespicker.css" />
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/pepper-grinder/jquery-ui.css" />
<script type="text/javascript" src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<script type="text/javascript" src="https://cdn.rawgit.com/dubrox/Multiple-Dates-Picker-for-jQuery-UI/master/jquery-ui.multidatespicker.js"></script>
<%--Multi Calender Date and script End--%>
<span class="none">
<asp:CheckBox ID="CheckBox1" runat="server" Text="Post Daily" onclick="EnableDisableTextBox(this)"
CssClass="checkbox" />
</span>
<div class="form-group col-md-3 padding2">
<asp:Label ID="lbldatepicker" runat="server" Text="Pickup Date" CssClass="none"></asp:Label>
<asp:TextBox ID="txtdatepicier" runat="server" AutoCompleteType="Disabled"></asp:TextBox>
<asp:Label ID="lbldatevalidation" runat="server" Text="" ForeColor="red"></asp:Label>
<asp:RequiredFieldValidator ID="rqvdatepicker" runat="server" ErrorMessage="Pickup Date is Required"
CssClass="validation" SetFocusOnError="True" ControlToValidate="txtdatepicier"
Display="Dynamic">Field Required</asp:RequiredFieldValidator>
<asp:Label ID="lblselecteddate" runat="server" Text="selectedate" Visible="false"></asp:Label>
<asp:Label ID="lblstartdate" runat="server" Text="startdate" Visible="false"></asp:Label>
<asp:Label ID="lblenddate" runat="server" Text="endate" Visible="false"></asp:Label>
</div>