View -
@using (Html.BeginForm("MethodName", "Build"))
{
<div>
@Html.TextAreaFor(model => model.OwnerComments, new { @id = "txtComments", @class = "form-control", @TextMode = "MultiLine", width = "400px" ,maxlength = "300" })
@Html.ValidationMessageFor(model => model.OwnerComments, "", new { style = "color:red;" })
</div>
<input type="submit" id="btnSave" class="but_4 btn btn-primary" value="Save" onclick="ShowErrors();" />
}
When i keep my textarea blank, it shows the validation message yet it calls the action -"MethodName" immediately Note - I have put [Required] attribute to my OwnerComments property