javascript - Setting mindate in datepicker on the bases of another datetimepicker selected date -


i want set mindate datetimepicker selected date in bootstrap datepicker. possible this??

<div class="form-group hide" id="divstartson">     <div class="col-md-3">         <label>start on</label>     </div>     <div class="input-group col-md-9" style="padding-left: 14px;">       <input id="datetimepicker8" type="text" class="date-picker form-control" />       <label for="datetimepicker8" class="input-group-addon btn">          <span class="glyphicon glyphicon-calendar"></span>       </label>     </div>     <div class="clearfix"></div>  </div>     <div class="input-group col-md-6" style="padding-left: 14px;">      <input id="datetimepicker9" type="text" class="date-picker form-control" />      <label for="datetimepicker9" class="input-group-addon btn">           <span class="glyphicon glyphicon-calendar"></span>      </label>  </div>

jquery code:

$("#datetimepicker6").on("dp.change", function (e) {      var sdate = $('#txtdatetimepicker1').val().split('/');      sdate[2] = sdate[2].substring(0, 4);      var stdate = sdate[0] + "/" + sdate[1] + "/" + sdate[2];        $("#datepicker8").datepicker("option", { mindate: stdate })  }); 

i solved removing datpicker.js , add jquery.ui.js after jquery.js


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -