how to get the first letters of a string in js code example
Example 1: jquery get first character of string
var header = $('.time'+col).text();
alert(header.charAt(0));
Example 2: javascript get first character of string
var str="Hello Folks!"
var firstStringChar = str.charAt(0); //H