hideMessages

Hides the validation messages.

Example

<form id="myform">
    <input name="username" required /> <br />
    <button>Save</button>
    <button id="hide" type="button">Hide Messages</button>
</form>

<script>
    // attach a validator to the container and get a reference
    var validator = $("#myform").kendoValidator().data("kendoValidator");

    //hide the validation messages when hide button is clicked
    $("#hide").click(function() {
        validator.hideMessages();
    });
</script>
In this article