title: How to prevent selecting date range in which there is a disabled date in between?
body: <p>I have two Jquery date pickers, in which a range of dates can be selected.</p>
  
  <p>I have implemented certain restrictions like, the date of textbox2 should be always greater than textbox1. In addition I have disabled certain dates.</p>
  
  <p>What I need is, if a user selects from date, and then selects to date, if there exist a disabled date in between, then the user should not be able to select that range. </p>
  
  <p>For example:</p>
  
  <p>I have disabled the dates: <code>"31-5-2014", "1-6-2014", "2-6-2014"</code></p>
  
  <p>If user selects date1 as <strong>29-5-2014</strong>, and tries to select <strong>4-6-2014</strong> as the second date, then he should not be able to do that as disabled dates are in betweeb. The max value for date2 must be <strong>30-5-2014</strong></p>
  
  <p>Adding the <a href="http://jsfiddle.net/6F9a5/29/" rel="nofollow"><strong>fiddle</strong></a></p>