jquery count values in array code example Example: jquery get number of elements in array var fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.length;