Wednesday, 18 September 2013

How to get first letter from string using jquery

How to get first letter from string using jquery

I am poor knowledge in jquery. I have mentioned the script below
var header = $('.time'+col).text();
alert(header);
I got string as "109:00AM" from that how to get first letter such as 1.
Could you please help me.

No comments:

Post a Comment