title: Issue in datepicker Lock dates in jquery
body: <p>I have two datepickers one is strat date &amp; oyher is end date
  When I select the start date ,the dates before the start dates in end datepicker should get locked bautomatically..
  I written like this,</p>
  
  <pre><code>$('#ProjectsMaster_startdate').datepicker({
              todayHighlight: true,
              autoclose: true,
          });
          $('#ProjectsMaster_enddate').datepicker({
              todayHighlight: true,
              autoclose: true,
              beforeShowDay: DisableSpecificDates,
          });
  
  
  function DisableSpecificDates(date)
      {
          var m = date.getMonth();
          var d = date.getDate();
          var y = date.getFullYear();
          var currdate = new Date(y, m, d);//Year, Month (starts from 0-11), Date   
          var start_date_val = new Date($("#ProjectsMaster_startdate").val());
          var disableddate = new Date(start_date_val);
          if (currdate &lt;= disableddate)
          {
              return false;
          }
      }
  </code></pre>
  
  <p>But I am facing a problem,
  <strong>The dates in the end date is getting locked when i click it twice But its not working on single click</strong>
  Plz anyone help me </p>