title: Use Jquery datepicker as month range picker
body: <p>I want to use jquery UI datepicker as month select picker. What is the code for it? Here I tried but it wasn't success </p>
  
  <pre><code>$('#startDateTotal').datepicker({
          changeMonth: true,
          changeYear: true,
          showButtonPanel: true,
          dateFormat: 'yy-MM ',
          maxDate: 0,
          onClose: function (selectedDate) {
              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));
              $("#endDateTotal").datepicker("option", "minDate", selectedDate);
          }
  </code></pre>