getElement

jQuery.caph.focus.Util. getElement

Gets DOM element from the given item.

(static) getElement(item) → {DOMElement}

Parameters:
Name Type Description
item DOMElement | jQuery

The target object. If target object is an instance of jQuery, gets from the first element in the set of matched elements.

Returns:

Returns DOMElement object if the given item is a jQuery or DOMElement object. If not, returns null.

Type
DOMElement