Skip to content
Loading
enable form control on selecting item from drop  
  • class="form-group" style="display: flex">  
  • class="form-control col-sm-2" value="Name" data-toggle="tooltip" data-placement="left" title="Name of employee" readonly />  
  • class="col-sm-3">  
  • for="LId" id="LId1"  
  • class="form-control"  
  • asp-items="@(new SelectList(ViewBag.ListOfTable,"LId", "EmpName"))">  
  •   
  •   
  •   
  • class="form-group" style="display: flex">  
  • class="form-control col-sm-2" disabled value="Surname" data-toggle="tooltip" data-placement="left" title="Surname of employee" readonly />  
  • class="col-sm-3">  
  • for="LId" id="LId2"  
  • class="form-control"  
  • asp-items="@(new SelectList(@ViewBag.ListOfTable,"LId", "EmpSurname"))">  
  •   
  •   
  •   
  • class="form-group" style="display: flex">  
  • class="form-control col-sm-2" value="Type of Leave" readonly />  
  • class="col-sm-3">  
  • for="TypeOfLeave" name="offer" id="leave" class="form-control">  
  • "0">Select  
  • "Sick">Sick  
  • "Family Responsibility">Family Responsibility  
  • "Study">Study  
  • "Vacation">Vacation  
  • "Bereavement">Bereavement  
  • "TimeOffWithoutPay">Time Off Without Pay  
  • "Military">Military  
  • "JuryDuty">Jury Duty  
  • "Maternity/Paternity">Maternity/Paternity  
  • "Other">Other  
  •   
  • for="TypeOfLeave" class="text-danger">  
  •   
  • 
  
  •   
  • 2 Replies

    Know the answer? Post it — somebody with the same question will find it here.