Example 1: Input should be not empty
Used checkers: notEmpty
Example 2: Input length should be between six and ten
Used checkers: minLength(6); maxLength(10)
Example 3: Input should be alphabetic in one case and numeric in second
Used checkers: alpha; numeric
Example 4: Input should be valid e-mail with minimal length ten characters
Used checkers: email; minLength(10)
Example 5: Input should be equal to "Hello"
Used checkers: equal(Hello)
Spaces, the quotes are not yet supported!
Example 6: Input should start with "Ex" in one case and has five lines in second(Custom checkers)
Used checkers: startWith(Ex); lineCount(5)
r.addChecker("startWith", function (element, args) { return element.value.indexOf(args[0]) == 0 }) r.addChecker("lineCount", function (element, args) { return element.value.split("\n").length == parseInt(args[0]) })
If you want to use tooltips, use checkbox: