javascript - How to determine the number of elements in the same class with jquery? -


this question has answer here:

i have elements in website have same class name want know how many these elements jquery or javascript?

the code jquery

$('.class-name').length; 

Comments