Each input has:
@Html.LabelFor
@Html.EditorFor
@Html.ValidationMessageFor
The validation message has a class of 'text-danger'. On submitting incorrect values, the errors appear properly. I added a Clear button with type="reset" but this only resets the input fields, not the validation messages.
I am aware of a similar question: How to clear Jquery validation error messages?
But, I need a clear explanation of whether to change the existing jquery.validation scripts, or how to write a separate script. Also, given the above criteria, how to format the onclick event of the reset button.