I have an enum of schooling if in case the user select the level of schooling as incomplete Superior or complete I want to appear a field to enter what is the course
How can I do this?
<div class="panel panel-default">
<div class="panel-body">
<div class="form-group">
@Html.LabelFor(model => model.GrauEscolaridade, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EnumDropDownListFor(model => model.GrauEscolaridade, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.GrauEscolaridade, "", new { @class = "text-danger" })
</div>
</div>
</div>
</div>
public enum GrauEscolaridade{
[Display(Name = "Superior incompleto ")]
SuperiorIncompleto = 15,
[Display(Name = "Superior Completo")]
SuperiorCompleto = 16
}