how to get the first letter of a string in jquery

var header = $('.time'+col).text();
alert(header.charAt(0));

4.43
7
MYaseen208 115 points

                                    $('element').text().split(' ')[0] 

4.43 (7 Votes)
0
0
0
Desty 110 points

                                    var header = $('.time'+col).text();
alert(header.charAt(0));

0
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how to get first char of string in jquery how to get the first 4 characters in jquery get the first word in a sentence jquery jquery first char text get first letter from text jquery get first word from string in jquery how to get first 4 characters of a string in jquery jquery string first word get jquery string first word get first character from string in jquery jquery first char how to get the first letter of a string in jquery jquery text get first letter get string before first character jquery find first letters in substring jquery choose the first letter jquery get first 3 characters of string jquery jquery string first 10 characters jquery get first 8 characters select the first text in a string jquery get first four characters of string jquery jquery first 8 character of string javascript first word in string how to get first character of a string in jquery how to get first letter of a string in jquery jquery get first letter of string on right side jquery first character of string jquery string get first word jquery select first element of string jquery check get first character of string jquery check first character get only first 10 words from string jquery get first word from string jquery jquery get first letter jquery get first 10 characters of string jquery get 1st character of string find first specific character in string jquery find first character in string jquery get first word in sentence jquery get first letter of a string javascript get first word in div jquery js first character of string get first lettre from all word jquery get the first word of a string jquery get the first letter of a string jquery jquery first word check firt character of string javascirpt display first 10 words from a string in jquery jquery get first word of string javascript jquery html+get firt character of div jquery return all but first letter how to get the first letters of a string in js get first character of jquery element get first word of string jquery jquery first character in string it display only first word of value in jquery first word jquery jquery get first word before line break jquery get first word before enter jquery get first word in string get first character of string jquery jquery first letter of string to input element jquery value first letter of string ReactJs get first cheractor from a word replace first word of text html element jq jquery select first character from string get first character in jquery get first character string jquery jquery match first character of string jquery select first word first letter jquery get the first word from a string jquery jquery get first letter of string jquery output first character in string jquery first character pointer to first character of string in pinputrbox jquery first char string jquery jquery get first character of string jquery get first char of string
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source