title: maxDate option in datepicker
body: <p>I have a Jquery UI datepicker like this.</p>
  
  <p><img src="https://i.stack.imgur.com/19zLE.png" alt="enter image description here"><br>
  I can only select month and year from the datepicker.<br>
  code: </p>
  
  <pre><code>$('#datepicker').datepicker({
       changeMonth: true,
       changeYear: true,
       showButtonPanel: true,
       dateFormat: 'M yy',
       maxDate: '0',                      
       onClose: function() {
            var iMonth = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
            var iYear = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
            $(this).datepicker('setDate', new Date(iYear, iMonth, 1));                              
      },
       beforeShow: function(input, inst) {
            $(inst.dpDiv).addClass('calendar-off');                             
       }
  });
  </code></pre>
  
  <p>If I set  <code>maxDate: '0'</code> the maximum month and year I can select is the current month and current year.<br>
  I want to set the maximum month and year using jquery.
  For a normal datepicker with date,month,year, first I remove this <code>maxDate: '0'</code>code and  I used the following code to set the maximum date</p>
  
  <pre><code>var maximumDate = '07-15-2013';
  $("#datepicker" ).datepicker( "option", "maxDate", maximumDate);
  </code></pre>
  
  <p>How can i set the maximum date in month and year picker?
  The above code is not working in this case.Please give me your suggestions.</p>