How to disable previous dates in bootstrap datepicker

Spread the love

How to disable previous dates in bootstrap datepicker

    <!DOCTYPE html>

<html>

  <head>

    <meta charset="utf-8">

    <meta https-equiv="X-UA-Compatible" content="IE=edge">
    <title>Pay Fees</title>
<!--date picker -->
<link href="http://code.jquery.com/ui/1.9.2/themes/smoothness/jquery-ui.css" rel="stylesheet" />

<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>

<script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>

	   <!--date picker -->
	   <script type="text/javascript">
	   $(document).ready(function(){
	   $("#datepicker").datepicker({
	   minDate: 30
	   });
	   
	   });
	   </script>
	   
	   </head>
	   <body>
	   <input type="text" id= "datepicker" name="datepicker">
	   </body>
</html>
https://www.youtube.com/watch?v=6uxGclkJiqs

How you ever asked yourself these question ?

disable previous date in datepicker

bootstrap datepicker disable dates dynamically

jquery datepicker | disable dates before today

bootstrap-datetimepicker disable past time

how to disable previous date in html

bootstrap datepicker disable future dates

datepicker disable past dates – jsfiddle

bootstrap datepicker disable specific dates