jquery get first 10 characters of string code example Example: jquery get first character of string var header = $('.time'+col).text(); alert(header.charAt(0));