jQuery length Property

jQuery Properties : Alert the number of <li> elements

Definition and Usage

The length property contains the number of elements in the jQuery object.

Syntax

$(selector).length