Hi
I want when user clicks on Add then IsActive CheckBox value should be true and it should be disabled.
Field IsValue is bit type in Sql.
<div class="col-sm-6 text-right"> <button type="button" class="btn btn-primary" data-target="#myModal" data-toggle="modal" float-right onclick="clearTextBox();"> <i class="fa fa-plus"></i> Add New Location</button><br /><br /> </div>
<div class="modal-body"> <div class="form-horizontal"> <div class="form-group"> <label class="control-label col-sm-3" for="Id">Id</label> <div class="col-sm-2"> <input type="text" class="form-control form-control-sm" id="txtId" name="Id" placeholder="Id"> </div> </div> <div class="form-group"> <label class="control-label col-sm-3" for="Description">Description</label> <div class="col-sm-9"> <input type="text" class="form-control form-control-sm" id="txtDescription" name="Description" placeholder="Description"> </div> </div> @*<div class="form-group"> <label class="control-label col-sm-3" for="IsActive">Active</label> <div class="col-sm-2"> <input type="text" class="form-control form-control-sm" id="txtIsActive" readonly placeholder="Active"> </div> </div>*@ </div> </div>
Thanks