jQuery length Property
jQuery Properties
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
jQuery Properties
Color Picker