The first step is to create html page and add links to the JavaScript files and CSS dependencies to your project. The jqxValidator widget requires the following files:
$("#form").jqxValidator('validate');
To get the result of a function (method) call, you need to pass the method name in
the jqxValidator’s constructor and parameters (if any).
$("#form").jqxValidator('validateInput', '#userInput');
To set a property(option), you need to pass the property name and value(s) in the
jqxValidator's constructor.
$("#form").jqxValidator({ focus: true });
To get a property(option), you need to pass the property name to the jqxValidator's constructor.
var duration = $("#form").jqxValidator('scrollDuration');
To bind to an event of a UI widget, you can use basic jQuery syntax. Let’s suppose
that you want to get the selected item when the user clicks. The example code below
demonstrates how to bind to the ‘validatorError’ event of jqxValidator.
$('#form').on('validationError', function (event) {
alert('Error while validating!');
});