how to get the count of how many classes code example Example: get count of div by class var numItems = $('.item').length;