title: Validate Date Entered from a Textbox Against Datepicker DateRange
body: <p>Hi have a textbox datepicker. The user can select date from datepicker or enter date manually by typing on the textbox. If date is manually typed how can I validate the input if is within the date range of my date picker? Please help. For example my date picker max year is only 1995 so user is not allowed to input date such as 01/25/1996.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>Date of Birth (MM/DD/YYYY):
  &lt;input type="text" class="datepicker minimumSize" 
  name="BirthDate" id="BirthDate"/&gt;
  </code></pre>
  
  <p><strong>JavaScript</strong></p>
  
  <pre><code>var d = new Date();
  var year = d.getFullYear() - 18;
  d.setFullYear(year);
  $('#BirthDate').datepicker({
      changeYear: true,
      changeMonth: true,
      yearRange: '1920:' + year + '',
      defaultDate: d});
  
  $('#BirthDate').blur(function(){
  //Validate input
  });
  </code></pre>
  
  <p><strong>JSfiddle</strong>
  <a href="http://jsfiddle.net/jobzky/wUpQG/" rel="nofollow">http://jsfiddle.net/jobzky/wUpQG/</a></p>