jQuery UI API - .focus()
Category
Method Overrides | Methods | UI Core
Usage
Description:Asynchronously focus an element.
Returns:jQuery
.focus( delay [, callback ] )Returns: jQuery
| Parameters | Type | Description |
|---|---|---|
| delay | Integer | The number of milliseconds to wait before focusing. |
| callback | Function() | A function to call once the element has been focused. |
This plugin extends jQuery's built-in.focus()method. If jQuery UI is not loaded, calling.focus()method will not fail directly, because the method exists in jQuery. However, the expected behavior will not occur.