jquery text length code example
Example 1: jquery count elements
var count_elements = $('.class').length;
Example 2: string length jquery
var string = "string"
string.length
var count_elements = $('.class').length;
var string = "string"
string.length