{hero}

field().input()

Since: Editor 1.4

Get the input node(s) for the field.
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

When working with forms, you often want to interact directly with the form's value input elements - for example, you might wish to listen for a change event to take some action when the user toggles a value change. This method will return a jQuery instance that contains all of the form input elements from the field.

Please note that all input element types are returned, regardless of the element type. For example, input, textarea and select elements are all considered to be form input elements.

Additionally, if an action on field value change is required, consider the dependent() method which can be used to reduce the amount of code you need to write when one field is dependent upon another.