I am resetting the form using the below code.
$("#Create").trigger("reset");
This is clearing all the values except the validation error message.
I am showing validation error message as below.
@if (ViewData.ModelState.Keys.Any(k => ViewData.ModelState[k].Errors.Any()))
{
<div class="alert alert-danger">
<button class="close" data-dismiss="alert" aria-hidden="true">×</button>
@Html.ValidationSummary(false, "Errors: ")
</div>
}
How can I clear this ?