Remove MultiDatesPicker default Date selection in jQuery

Last Reply 5 months ago By dharmendr

Posted 5 months ago

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();
<%--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;
            dateFormat: 'mm/dd/yy',
            minDate: 0,
            defaultDate: today
<link rel="stylesheet" href="" />
<link rel="stylesheet" href="" />
<script type="text/javascript" src=""></script>
<script type="text/javascript" src=""></script>
<%--Multi Calender Date and script End--%>
<span class="none">
    <asp:CheckBox ID="CheckBox1" runat="server" Text="Post Daily" onclick="EnableDisableTextBox(this)"
        CssClass="checkbox" />
<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>


This question does not have replies that have been liked.