Makes focusable element available. The focus plug-in uses MutationObserver to make the dynamically appended focusable element available automatically. But if there is no MutationObserver, you have to call this method manually. This method puts focusable element to nearest focusable finder, and bind all focusable related events to focusable element.
(static) $$toAvailable(element) → {DOMElement|jQuery}
Parameters:
Name | Type | Description |
---|---|---|
element |
DOMElement | jQuery | A focusable element. |
- See:
Returns:
- Type
- DOMElement | jQuery
Example
$(document.body).append($.caph.focus.$$toAvailable($('<div focusable></div>')));