title: Datepicker onSelect not working
body: <p>I have the function below that doesn't seem to work and could do with a little help please. The function basically adds 30 days to the date selected with the datepicker.</p>
  
  <pre><code>$('#datepicker').datepicker({
     onSelect: function(dateText, inst) { 
  
         var date = new Date(dateText);
         date.setDate(date.getDate() + 30);
         date.format('mm/dd/yy');
  
         alert(date)
     }
  });
  </code></pre>
  
  <p>I cant see where I am going wrong. When a date is selected it is adding a empty anchor to the address bar URL, if is helps.</p>
  
  <p>Thanks.</p>