Hi Team
I have a checkboxfor, but i want to select it using jquery to call datepicker. How do i achieve such from below meaning it must have time?
- class="form-check">class="col-xl-2">
- @Html.CheckBoxFor(model => model.Lockuntil, new { @class = "form-check-input" })
- ="form-check-label" for="@Html.IdFor(model=>model.Lockuntil)">Lockuntil
- $( "#datepicker" ).datepicker({
- regional: "da",
- constrainInput: true,
- showWeek: true,
- showTime:true // allowed?
- });
- $("#dataLocker").change(function() {
- if(this.checked) {
- $("#datepicker").prop("disabled",false);
- }else{
- $("#datepicker").prop("disabled",true);
- }
- });
Jishan SiddiquePosted Aug 21, 2020, 11:02 PM