Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get class count in jquery

// Gets the number of elements with class yourClass
var numItems = $('.yourclass').length
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #class #count #jquery
ADD COMMENT
Topic
Name
9+1 =