jquery text lenght w3school code example Example: string length jquery var string = "string" string.length