Follow the code:
@using (Html.BeginForm("Update", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form", enctype = "multipart/form-data" }))
{
.
.
.
<input type="text" name="lastname">
<input type="submit" class="btn btn-success" value="Criar" />
}
I want to check input using javascript or jquery, then post.
If input is blank or empty, do not post.
If it's different than white, make post