<pre> <div class="form-check"> <div class="col-xl-2"> @Html.CheckBoxFor(model => model.Lockuntil, new { @class = "form-check-input" }) <label class="form-check-label" for="@Html.IdFor(model=>model.Lockuntil)">Lockuntil</label> </div> </div>
$( "#datepicker" ).datepicker({ regional: "da", constrainInput: true, showWeek: true }); $("#dataLocker").change(function() { if(this.checked) { $("#datepicker").prop("disabled",false); }else{ $("#datepicker").prop("disabled",true); } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)