jquery string get first word code example
Example 1: jquery get first character of string
var header = $('.time'+col).text();
alert(header.charAt(0));
Example 2: get the first word from a string jquery
$('element').text().split(' ')[0]
var header = $('.time'+col).text();
alert(header.charAt(0));
$('element').text().split(' ')[0]