Answers for "get first character of string jquery"

30

javascript get last character in string

var hello = "Hello World";
var lastCharOfHello=hello.slice(-1);//d
Posted by: Guest on August-01-2019
0

get the first word from a string jquery

$('element').text().split(' ')[0]
Posted by: Guest on September-03-2020
1

jquery get first character of string

var header = $('.time'+col).text();
alert(header.charAt(0));
Posted by: Guest on June-03-2020
0

how to get the first letter of a string in jquery

var header = $('.time'+col).text();
alert(header.charAt(0));
Posted by: Guest on May-24-2021

Code answers related to "get first character of string jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language