title: Display specific month on datepicker without changing selected date
body: <p>i'm using two datepickers to select range of dates, and I have the following problem:</p>
  
  <p>When i select "start date" on <strong>datepicker I</strong>, I update <em>minDate</em> on the second one (analogously when selecting "end date" I update <em>maxDate</em> on the first one).</p>
  
  <p>The problem is, that updating <em>maxDate</em> or <em>minDate</em> causes refreshing of datepicker.</p>
  
  <p>So, for example if someone was browsing months on <strong>datepicker II</strong> and then selects some date on <strong>datepicker I</strong> then <strong>datepicker II</strong> will refresh and display goes back to last selected date on <strong>datepicker II</strong>, instead of staying at month user was browsing.</p>
  
  <p>I already know the way to find out which month was last displayed on datepicker - by using "onChangeMonthYear" option. </p>
  
  <p>The question is how to force datepicker to navigate to month I want (without actually changing selected date). </p>
  
  <p>I'd really appreciate any help or suggestions.</p>
  
  <p>Code, as requested. I'm using AngularJS, but I guess you can easily see how this would be translated into JQuery:</p>
  
  <pre><code>scope.fromDate.onChangeMonthYear = function(year, month){
      //saving info about date I
  };
  
  scope.toDate.onChangeMonthYear = function(year, month){
      //saving info about date II
  };
  
  scope.fromDate.onSelect = function(selectedDate) {
      element.find(".date-to").datepicker("option", "minDate", selectedDate);
  };
  
  scope.toDate.onSelect = function(selectedDate) {
      element.find(".date-from").datepicker("option", "maxDate", selectedDate);
  };
  </code></pre>