Check documentation for the latest version of dhtmlxSuite setValidation DHTMLX Docs

setValidation

adds a validation rule to the input with the specified name

void setValidation(string name,string value,string rule);
namestringthe name of an item
valuestringthe value of a radio button
rulestringa validation rule (possible validation rules are described in the related article)

Example

myForm.setValidation(name, "ValidInteger");

See also
  • Articles
  • Back to top