jquery get the number of elements with the same class name code example Example: get count of div by class var numItems = $('.item').length;