2
I have an Enum of schooling if in case the user selects the level of education as an incomplete or complete superior I want to appear a field to insert which is the course
How can I do that ?
<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
}
you could post part of what you’ve done so far, it would make it easier for us to try to help you.
– Edney Batista da Silva
I posted the structure I have
– Alerf Morais