title: jQuery datepicker function override
body: <p>I created some custom datepicker using jQuery datepicker, and it works perfect. There is some scenarios when I need some functionality for onSelect event, and want to override it. But I need not to change any other setting from initial datepicker.</p>
  
  <p>here is my code sample:</p>
  
  <pre><code>$('#start_date.datepicker, #end_date.datepicker').attachCustomDatepicker();
  
  $('#start_date.datepicker').datepicker({ 
        onSelect: function(dateValue, inst) { 
               $('#end_date.datepicker').datepicker("option", "minDate", dateValue); 
        } 
  });
  </code></pre>