$fn.setFocus(param)
Gives focus to a specified component within the UI.
This is a built-in function added in "v3.3.0".
Arguments
| Name | Type | Description |
|---|---|---|
| param | object | ID information of the component to focus on |
Details of param:
| Property | Type | Description |
|---|---|---|
| id | string | The ID of the component to focus on |
Return Value
None
Sample
$fn.setFocus({ id: 'text_area'})