1
Follows 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, and then post.
If input is white or empty, do not post.
If different than white, do post
Which element ?
– novic
@Virgilionovic, I updated post
– Matheus Miranda
Do you use jQuery?
– novic
@Virgilionovic yes
– Matheus Miranda