When attempting to hide the validation message on click of the textbox, it remains visible. Can someone please provide assistance?
<div class="col-md-10">
@Html.TextBoxFor(m => m.Email, new { @class = "form-control", @autocomplete = "off", onclick = "clearValidation()" })
@Html.ValidationMessageFor(m => m.Email, "", new { @style = "color:white; font-weight:normal; margin-left:-155px;" })
</div>
<script>
function clearValidation() {
document.getElementsByClassName("validation-summary-errors").style.color = "#ff0000";
}
</script>