I am trying to enable form elements when selecting the first drop down with id LId3, I took the code from a button. The problem starts when I enable the searchable dropdown, when i open the searchable dropdown the form elements are not enabled. When the dropdown is clickable the form elements get enabled. Please assist with the below:
- asp-action="Create" method="post" class="form-horizontal" role="form">
- "ModelOnly">
- class="form-group" style="display: flex">
- class="form-control col-sm-2" data-toggle="tooltip" data-placement="left" title="Employee Identiy Number" readonly />
class="col-sm-3">- class="form-control" value="Enable"
- id="LId3">
- asp-action="Create" method="post" class="form-horizontal" role="form" id="GFG">
- "ModelOnly">
- 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">- ="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">- ="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">- ="TypeOfLeave" name="offer" id="leave" class="form-control">
- >Select
- >Sick
- >Family Responsibility
- >Study
- >Vacation
- >Bereavement
- >Time Off Without Pay
- >Military
- >Jury Duty
- >Maternity/Paternity
- >Other
- for="TypeOfLeave" class="text-danger">
Ramachandran MPosted Jan 22, 2020, 11:27 AM
id="LId3">
Laxmidhar SahooPosted Jan 22, 2020, 11:14 AM