Date Picker (after today)

Date picker with dates restricted to today and ten years after.

by Colin Soderstrom

HTML

<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<input type="text" id="datepicker">

JavaScript

$(function() {
    $( "#datepicker" ).datepicker({ minDate: 0, maxDate: "+10Y" });
  });