BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
@Html.EJ().DropDownList("schoolStatusList").Datasource((IEnumerable<ELLBooking.Models.ControlInfo>)Model.Where(m => m.ControlName == "SchoolStatus").ToList()).DropDownListFields(df => df.ID("ControlID").Text("ControlValue").Value("ControlValue")).Value(Model.Where(m => m.ControlID == ViewBag.datasource.PreviousSchoolStatus.ToString()).Select(m => new { m.ControlValue }).Single().ControlValue.ToString()).ClientSideEvents(evt => evt.Change("onChange").Create("oncreate"))
function oncreate(args) {
if (args.model.value == "Withdrawn")
{
$("#wDate1").show();
$("#wDate2").show();
}
else {
$("#wDate1").hide();
$("#wDate2").hide();
}
} |
Nice, It works!
Thank you very much for your help!