Skip to content

jQuery.fn.isElement()

Evgenii Koriakin edited this page Oct 14, 2015 · 3 revisions

Version added: 1.0.0

Summary

Determines whether the first jQuery object of the set of jQuery objects is an element.

Returns

True if the first jQuery object is an element; otherwise - false.

Type: Boolean

Examples

Determines whether the first jQuery object of the set of jQuery objects is an element:

HTML:

<html>
<body>
    <div class="product__name"></div>
</body>
</html>

Code:

var isElement = $('.product__name').isElement();

Result:

true

Clone this wiki locally