title: Datepicker onSelect Not Firing
body: <p>I have a date picker but <code>onClose</code> and <code>onSelect</code> will not fire. The code is in <code>document.ready</code> so i know its initialized.</p>
  
  <pre><code>$('#DateRangeTo').datepicker({
      beforeShow: function (input, inst) {
          inst.dpDiv.css({ marginTop: -input.offsetHeight + 'px', marginLeft: input.offsetWidth + 'px' });
      },
      format: "dd/mm/yyyy",
      startView: 1,
      //daysOfWeekDisabled: "3,4",
      autoclose: true,
      todayHighlight: true,
      //onClose: function (dateText, inst) { alert("here"); }
      onSelect: function (dateText, inst)
      {
          alert("Working");
      },
      onClose: function (date) {
          var dt = new Date(date);
          alert(dt.getMonth());
      }
  });
  </code></pre>