title: How to prevent onselect date filling in the field after the blur function
body: <p>I have a blur function to check two dates by datepicker. If the end date is before the begin date, it will alert an error and the selected date could not be filled in the input field. Firstly trigger blur event:</p>
  
  <pre><code>...date picker
  onSelect: function() {
      this.focus();
  
  },
  onClose: function() {
      this.blur();
  }
  </code></pre>
  
  <p>...validate part</p>
  
  <pre><code>jQuery("#p_stdy_edate").blur(function() {
      var stdy_bdate = jQuery("#p_stdy_sdate").val();
      var stdy_edate = jQuery("#p_stdy_edate").val();
      if (stdy_edate &lt; stdy_bdate) {
          alert("End date should be later than begin date");    
      }
  
  });
  </code></pre>
  
  <p>But when I select an invalid end date(the end date input box has a default date), the invalid date is filled into input field after showing the alert. How to fix it?</p>