j query get the length of a string code example Example: string length jquery var string = "string" string.length