DHTMLX Docs & Samples Explorer

setValidateCss (name, state, custom)

Sets CSS treatment for form validation.

myForm.setValidateCss("myitem", false, "mycss");

Parameters:

  • name - the item name
  • state - defines whether the css class should be applied to items that were validated successfully (true) or to items that failed the validation (false)
  • custom - the name of a css class to apply

See also: