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