title: jQuery UI Datepicker set display month
body: <p>I need to set the display month on a datepicker in the click event of another control. Is that possible? I can't use the setDate method since that will set a specific date, whereas I'm trying to emulate the prev/next month buttons on the datepicker.</p>
  
  <p><strong>EDIT:</strong> I'm using the inline datepicker <a href="https://jqueryui.com/datepicker/#inline" rel="nofollow">https://jqueryui.com/datepicker/#inline</a></p>
  
  <p>html:</p>
  
  <pre><code>&lt;input type="button" onclick="ChangeMonth(1);" /&gt;
  </code></pre>
  
  <p>javascript:</p>
  
  <pre><code>function ChangeMonth(month)
  {
      //set month on datepicker
      $("#DatePicker").???
  }
  </code></pre>