title: DatePicker in jQuery Not Showing Calendar
body: <p>I am trying to do a date picker in jQuery. I put these within the head tag:</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" media="screen" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/themes/smoothness/jquery-ui.css"&gt;
      &lt;script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
      $(function() {
          $('.date-picker').datepicker( {
              changeMonth: true,
              changeYear: true,
              showButtonPanel: true,
              dateFormat: 'MM yy',
              onClose: 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));
              }
          });
      });
      &lt;/script&gt;
  </code></pre>
  
  <p>And from this part of my code in JavaScript is calling the date picker:</p>
  
  <pre><code>case "mhc":
          if (mhc_overlay == null) {
                 mhc_overlay = new google.maps.HeatmapLayer();
          }
          if (!mhc_overlay_visible) {
              mhc_overlay_visible = true;
              $("#MHC").removeClass("menuLink");
              $("#MHC").addClass("menuLink_selected");
  
              visibleOverlays.push("mhc");
  
              var content = "";
              content += "&lt;label for='startDate'&gt;Date :&lt;/label&gt;";
              content += "&lt;input name='startDate' id='startDate' class='date-picker' /&gt;";
  
              filterWindowContent.push({ id: "mhc", label: label, content: content });
              showFilterWindow();
  
              map.setMapTypeId(google.maps.MapTypeId.ROADMAP);
              addToCurrentOverlayList("loadedmhc", "mhc", "MHC Live Map");
  
          }
          break; 
  </code></pre>
  
  <p>There is no error message showing but just that the date picker does not show calendar when selected. I wonder why is it so. </p>
  
  <p>Thanks in advance.</p>