How to Count Elements on Page using JQuery

You want to count images, links or any other type of elements on page. You can use JQuery size() method.

The following code will count total number of images on page.




About author

User avatar

Waqas Anwar

Founder of, Senior Consultant, Microsoft .NET and Web Technologies