title: Cannot change month in jQuery UI datepicker
body: <p>I am trying to use the jQuery UI widget datepicker. It mostly works except that the 'Prev'/'Next' links do nothing. 'Today' works and selecting a day works.  The field is:</p>
  
  <pre><code>&lt;input id="TransferDate" name="TransferDate" type="text" value="1/2/2013" /&gt;
  </code></pre>
  
  <p>And the setup call is:</p>
  
  <pre><code>$('[Name="TransferDate"]').datepicker({
              showButtonPanel: true,
              dateFormat: 'dd/mm/yy',
              showAnim: '',
              showOn: 'button',
              buttonImage: '/images/calendar.gif',
              buttonImageOnly: true,
              stepMonths: 1,
              onClose: function(dateText, inst){
                      $('[Name="TransferDate"]').val(dateText);
                      },
              onSelect: function(dateText, inst){
                      $('[Name="TransferDate"]').val(dateText);
                      }
  });
  </code></pre>
  
  <p>Looking at the generate HTML, the button icons are wrapped in the appropriate  tags:</p>
  
  <pre><code>&lt;a class="ui-datepicker-next ui-corner-all"
    onclick="DP_jQuery_1370007056335.datepicker._adjustDate('#TransferDate', +1, 'M');"
    title="Next"&gt;
    &lt;span class="ui-icon ui-icon-circle-triangle-e"&gt;Next&lt;/span&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>What could stop the working?</p>
  
  <p>As you can see, I've tried setting 'stepMonths' explicitly and (not shown) tried adding a <code>.on('change', function(){$(this).blur();});</code></p>
  
  <p>At other places on the same page, the datepicker works. This is in a dialog box and only seems to partially work.</p>
  
  <p>It's using jquery-1.7-mis.js and jquery-ui-1.8.11.min.js. As it's parts of a larger project, changing the versions is probably not an option.</p>