get length of array jquery code example
Example 1: jquery count elements
var count_elements = $('.class').length;
Example 2: jquery get number of elements in array
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.length;
var count_elements = $('.class').length;
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.length;