how to check the length of a string in jquery code example Example: string length jquery var string = "string" string.length