errors
()
: Array
// get a reference to the validatable form
var validatable = $("#myform").kendoValidator().data("kendoValidator");
$("#save").click(function() {
if (validatable.validate() === false) {
// get the errors and write them out to the "errors" html container
var errors = validatable.errors();
$(errors).each(function() {
$("#errors").html(this);
});
}
});
validate
()
: Boolean
// get a reference to the validatable form
var validatable = $("#myform").kendoValidator().data("kendoValidator");
// check validation on save button click
$("#save").click(function() {
if (validatable.validate()) {
save();
}
});
validateInput
(input)
: Boolean
input
: Element