0
I need some help, I looked at the posts before a similar subject, but I couldn’t find an example like mine, if you can help me, thank you.
I have an Edit View that already brings the registered value of a checkbox.
<div class="col-md-1 ">
Aprovado
@Html.CheckBoxFor(model => model.Aprovado, new {Attributes = new { @class =
"form-control" , @style = "font-size:12px;", @id = "aprovado",
@name="aprovado"} })
</div>
I have a finish button that sends the data for recording, only the checkbox does not work, I tried to debug but presents as undefined.
$("#finalizar").click(function () {
alert($("#aprovado").val());
}