markInvalid

marks a form control invalid

void markInvalid(string name, [boolean| string state] );
name
stringvalue of "name" parameter of the desired input state
boolean| stringremoves invalid mark; sets invalidMessage

Example

$$("myform").markInvalid("login", "Login must not be empty");

Details

"State" parameter is optional. It may define:

See also
  • API
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.