.length

.length

lengthReturns: Integer

Description: The number of elements in the jQuery object.

  • version added: 1.0length

The number of elements currently matched. The .size() method will return the same value.

Example:

Count the divs. Click to add more.

<!doctype html>
<html lang="en">
&