New to Kendo UI for jQueryStart a free 30-day trial

Validate

methods

Validates the input element(s) against the declared validation rules.

Returns:Boolean

true if all validation rules passed successfully.

  <div id="myform">
    <input name="username" required /> <br />
    <button id="save">Save</button>
  </div>

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

    //validate the state on button click
    $("#save").click(function() {
      //validate the input elements and check if there are any errors
      if (validatable.validate()) {
        //save the form
      }
    });
  </script>
Not finding the help you need?
Contact Support