get count of div by class
snippet in javascript

get count of div by class

user1364

var numItems = $('.item').length;