field().enabled()

Since: Editor 1.6.5

Determine if a field is enabled or not.
Please note - this property requires the Editor extension for DataTables.

Description

A companion method to the field().enable() and field().disable() methods, this method can be used to programmatically determine if a field is in the enabled state (i.e. allows user input) or not.

Type

field(…).enabled()

Gets the field's current enablement state.

Returns:

boolean: true if enabled, false otherwise.

Related

The following options are directly related and may also be useful in your application development.