How to set Date Picker using jquery - disable past dates - ASP TANMOY

Latest

Tuesday 29 December 2015

How to set Date Picker using jquery - disable past dates

Code for Datetimepicker using JQUERY. Just copy this code and paste to your project.
.......................................................................................
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI Datepicker - Restrict date range</title> <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script> <link rel="stylesheet" href="/resources/demos/style.css"> <script> $(function() { $( "#datepicker" ).datepicker({ minDate: -20, maxDate: "+1M +10D" }); }); </script> </head> <body> <p>Date: <input type="text" id="datepicker"></p> </body> </html>
..................................................................
Download Code

No comments:

Post a Comment