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 jqLite or DOMElement object. If not, returns null.
- Type
- DOMElement