Name | Details |
---|---|
name | String: name of the HTML attribute which needs to be toggled |
bool | boolean: Boolean to force the attribute on or off. When unspecified, the state of the attribute will be reversed. |
node | HTMLElement: name of the node which contains the HTML attribute. Defaults to this |
A good example of this will be form, where submit button should only be active if all the mandatory fields have input.