DHTMLX Docs & Samples Explorer

clearValidation(name, value)

removes all validation rules from the input

Parameters:

  • name - the id of item (the item's parameter 'name')
  • value - the value of a radio button ( the radio's parameter 'value'). Required for 'radio' items only
  // for radio button
myForm.clearValidation(name, value);
  // for other items
myForm.clearValidation(name);