0

I need to enable some specific future dates as per the user input day from Jquery datepicker using Jquery/Javascript. I am explaining my code below.

<strong>Select Date:</strong>
<input type='text' id='txtDate' />
<button class="process" id="btn" onclick="duplicate();">Clean</button>
<script type="text/javascript">
    $( "#txtDate" ).datepicker({
        changeMonth: true,
        dateFormat: 'dd-mm-yy',
        minDate: 0,
    });
    function duplicate() {

    }
</script>

Here I have jquery datepicker. Suppose I need to enable all future Monday and Thrusday dates only and other dates will remain disabled.

2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.