title: jQuery UI Datepicker using onChangeMonthYear to update date
body: <p>I've had quite a few clients complain about when they change the date on the JQuery Datepicker, it doesn't update the date... This is because they change the month/year and expect it to update the date without selecting one.</p>
  
  <p>So I thought I'd help them out and update the date for them automatically using the onChangeMonthYear() function.</p>
  
  <p>My code is below. When I change the month or year, it takes me to 2017 or 1987... I don't understand what is wrong. Am I missing something?</p>
  
  <pre><code>$('#member_birthday_full').datepicker({ 
      altField: '#member_birthday',
      altFormat: 'yy-mm-dd',
      changeMonth: true,
      changeYear: true,
      dateFormat: 'DD, d MM yy',
      showAnim: 'slideDown',
      yearRange: '-125:+0',
      onChangeMonthYear:function(y, m, i){                                
          var d = i.selectedDay + '';                       
          if (d.length &lt; 2) 
              d = '0' + d;                       
          var m = m + '';                       
          if (m.length &lt; 2) 
              m = '0' + m;   
          $(this).datepicker( "setDate", y + '-' + m + '-' + d ); 
      }
  });​
  </code></pre>
  
  <p><a href="http://jsfiddle.net/3YQZV/">http://jsfiddle.net/3YQZV/</a></p>