Clear Kendo Validator Error Messages

I have a form with several controls, the check condition is set in the model using regular expressions when the condition does not satisfy the error messages indicated next to the control. I have another button for clearing verification error messages. How to clear these messages

                     $("#student-details").kendoValidator();
+4
source share
2 answers

Taken verbatim from the documentation :

// 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();
});
+9
source

it worked for me.

.k-widget.k-tooltip-validation {
    display: none !important;
}
0
source

Source: https://habr.com/ru/post/1537592/


All Articles