title: JQuery Datepicker Only For Month and Year
body: <p>I am using jquery Datepicker UI .I need to display only month and year using this UI.
  I Got that using the following code:</p>
  
  <pre><code>$(function() {
           $('.date-picker').datepicker( {
          changeMonth: true,
          changeYear: true,
          showButtonPanel: true,
          dateFormat: 'yy-mm',
          onChangeMonthYear: function(dateText, inst) { 
              var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
              var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
              $(this).datepicker('setDate', new Date(year, month, 1));
  
          }
      });
  });
  </code></pre>
  
  <p>HTML :</p>
  
  <pre><code>&lt;input type='text' id='date' name='eattdate' class='date-picker' value='".$date."' style='width:105px;'&gt;
  </code></pre>
  
  <p>This works fine and It displays current month and year as default.But i want to make the month and year selected .</p>