SyntaxFix
Write A Post
Hire A Developer
Questions
The best way would be to use .each()
var num = 0; $('.className').each(function(){ num++; });