Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
jquery get first character of string
jmartinfe
Programming language:
Javascript
2021-05-29 06:27:46
0
Q:
jquery get first character of string
King
Code:
Javascript
2021-05-28 16:08:48
var header = $('.time'+col).text(); alert(header.charAt(0));
1
Daniel
Code:
Javascript
2021-02-14 01:45:13
$('element').text().split(' ')[0]
0
Tags
string
get
jquery
first
character
Related
how to display first value of an array in jquery
get the first word from a string jquery
get id of first td jquery
how to select the first div in jQuery
jquery last character in string
New to Communities?
Join the community