-3

I link the jquery file in my page that can simply show datepicker but the function that have code of disabling past date is not working. When i code for displaying specific date is also not working. feedback will be high appreciated.

<script>
   $("#datepicker").datepicker();

   $(document).ready(function(){
        $("#datepicker").datepicker({
            minDate: -0
        });
    });       
</script>
Jay Blanchard
  • 34,243
  • 16
  • 77
  • 119
arshad
  • 361
  • 3
  • 8

1 Answers1

0

You can set minDate: 0

<script>    
   $(document).ready(function(){
        $("#datepicker").datepicker({
            minDate: 0
        });
    });       
</script>
tech2017
  • 1,806
  • 1
  • 13
  • 15