how to find number of items that use an html class code example Example: get count of div by class var numItems = $('.item').length;