Answers for "datepicker disable dates dynamically"

0

disable changing month datepicker

$("#date").datepicker({
  changeMonth: false,
  changeYear: false,
  dateFormat: 'dd/mm/yy',
  duration: 'fast'
}).focus(function() {
    $(".ui-datepicker-prev, .ui-datepicker-next").remove();
});
Posted by: Guest on April-20-2020
-2

disable past date in inpit date picker

$(function(){
    var dtToday = new Date();
    
    var month = dtToday.getMonth() + 1;
    var day = dtToday.getDate();
    var year = dtToday.getFullYear();
   
    $('#txtDate').attr('min', maxDate);
});
Posted by: Guest on January-27-2021

Code answers related to "datepicker disable dates dynamically"

Browse Popular Code Answers by Language