Jquery count elements with class in div code example Example: count all elements with class jquery var numItems = $('.item').length;