count class jquery code example
Example 1: get count of div by class
var numItems = $('.item').length;
Example 2: jquery count elements
var count_elements = $('.class').length;
Example 3: count all elements with class jquery
var numItems = $('.item').length;
Example 4: get class count in jquery
// Gets the number of elements with class yourClass
var numItems = $('.yourclass').length