updateElementStatus()

Update the element status

updateElementStatus(field: String, ele: HTMLElement, status: String, validator: String): Core

* presents a required parameter

  • field * — The field name
  • ele * — The field element
  • status * — The new status. It can be one of the following value
    • 'NotValidated' or FormValidation.Status.NotValidated: The field is not yet validated
    • 'Valid' or FormValidation.Status.Valid: The field is valid
    • 'Invalid' or FormValidation.Status.Invalid: The field is invalid
  • validator — The validator name. If it isn't specified, all validators will be updated