isDisabled()
checks whether a Select control or a specific option inside the control is disabled
isDisabled(value?: string | number): boolean;
Parameters:
value: string | number
- optional, the value of a specific option inside the control
Returns:
true
, if a control or a specific option is disabled; otherwise, false
.
Example
form.getItem("select").isDisabled(1); // -> true/false
Change log: The value parameter was added in v8.0