How to set minDate to current date in jQuery UI Datepicker?

前端 未结 7 622
渐次进展
渐次进展 2020-12-03 04:26

This is my code and it is not working correctly. I want to set minDate to the current date. How can I do it?

$(\"input.DateFrom\").datepicker({
         


        
7条回答
  •  有刺的猬
    2020-12-03 04:53

    I set starting date using this method, because aforesaid or other codes didn't work for me

    $(document).ready(function() {
     $('#dateFrm').datepicker('setStartDate', new Date(yyyy, dd, MM));
     });

提交回复
热议问题