jQuery length Property
Example
Output
$("button").click(function(){
alert($("li").length);
});
Try it »
Definition and Usage
The length property contains the number of elements in a jQuery object.
Syntax
$(
selector
).length
Output
$("button").click(function(){
alert($("li").length);
});
Try it »
The length property contains the number of elements in a jQuery object.
$(
selector
).length