jQuery length Property
Example
Alert the number of <li> elements:
$("button").click(function(){
alert($("li").length);
});
Try it Yourself »
Definition and Usage
The length property contains the number of elements in the jQuery object.
Syntax
$(selector).length
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.