title: How to access jEditable DatePicker options (onSelect, minDate, maxDate)
body: <p>I am using jEditable together with jQuery DatePicker. I am trying to do validation for a date range. For example, if 1st June 2010 is selected in the <code>startDate</code> field, the user cannot select dates before 1st June 2010 in the <code>endDate</code> field and vice versa.</p>
  
  <p>All of the other codes are working except the validation part. What I understand is that the full version of jQuery-ui DatePicker is included in the jEditable version but I do not know how to use it.</p>
  
  <p>This is the DatePicker I am using: <a href="https://github.com/qertoip/jeditable-datepicker/tree/master/src" rel="nofollow">https://github.com/qertoip/jeditable-datepicker/tree/master/src</a> </p>
  
  <p>Sample Demo of DatePicker plugin: <a href="http://thesingularity.pl/jeditable-datepicker-demo/" rel="nofollow">http://thesingularity.pl/jeditable-datepicker-demo/</a></p>
  
  <p>My script</p>
  
  <pre><code>  $( '#startDate' ).editable('AppUpdateServlet',{
    indicator : '&lt;img src="images/indicator.gif"&gt;',
    type: 'datepicker',
    datepicker: {
      dateFormat: 'dd/mm/yy',
      //minDate: '+1w'            (this is working)
      onSelect: function() {
         //the alert is working
         //alert("working");
  
         //not working
         $('#endDate').datepicker('option', {minDate: $(this).datepicker('getDate')});
  
       }
    }
  });
  
  
  $( '#endDate' ).editable('AppUpdateServlet',{
    indicator : '&lt;img src="images/indicator.gif"&gt;',
    type: 'datepicker',
    datepicker: {
      dateFormat: 'dd/mm/yy',
      onSelect: function() {
      //not working
      $('#startDate').datepicker('option', {minDate: $(this).datepicker('getDate')});
      }
    }
  });
  </code></pre>
  
  <p>HTML snippet</p>
  
  <pre><code>&lt;span  id="startDate"&gt;
      &lt;%=test.getStartDate()%&gt;
  &lt;/span&gt;
  &lt;span  id="endDate"&gt;
      &lt;%=test.getEndDate()%&gt;
  &lt;/span&gt;
  </code></pre>