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