field().focus()
Since: Editor 1.3
Focus on a 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 sign-in, alternatively an Editor license can be purchased on this site, or sign up for the free trial.
Description
This method provides the ability to programmatically give focus to a particular field. Different field types have different ways of activating focus (for example a WYSIWYG control is different from a simple text input field). This method abstracts that problem away, with the field type performing a suitable focus for the controls it displays to the end user.