jquery count number of element of a class code example Example: get count of div by class var numItems = $('.item').length;