About 50 results
Open links in new tab
  1. How do I make the first letter of a string uppercase in JavaScript ...

    Jun 22, 2009 · How do I make the first character of a string uppercase if it's a letter, but not change the case of any of the other letters? For example: "this is a test" → "This is a test" ...

  2. How can I capitalize the first letter of each word in a string using ...

    The function below does not change any other part of the string than trying to convert all the first letters of all words (i.e. by the regex definition \w+) to uppercase.

  3. javascript - Uppercase first letter of variable - Stack Overflow

    Jan 29, 2017 · I have searched over the web and I can't find anything to help me. I want to make the first letter of each word upper case within a variable. So far I have tried: toUpperCase(); And I didn't have ...

  4. Capitalize first letter of each word in JS - Stack Overflow

    37 I'm learning how to capitalize the first letter of each word in a string and for this solution I understand everything except the word.substr (1) portion. I see that it's adding the broken string but how does …

  5. javascript - How to capitalize first letter and lowercase the rest of ...

    Aug 20, 2020 · This can also be accomplished with CSS by setting text-transform to lowercase for the entire element and using the ::first-letter pseudo element to set the text-transform to uppercase.

  6. javascript - How do I make the first letter of a string uppercase ...

    May 4, 2011 · Closed 14 years ago. Possible Duplicate: Capitalize first letter of string in javascript How do I make the first letter of a string uppercase?

  7. javascript - With jQuery, how do I capitalize the first letter of a ...

    Jan 7, 2010 · 82 I'm looking for an example of how to capitalize the first letter of a string being entered into a text field. Normally, this is done on the entire field with a function, regex, OnBlur, OnChange, …

  8. How to capitalize first letter of each word, like a 2-word city?

    To make sure the converted City name is injected into the database, lowercased and first letter capitalized, then you would need to use JavaScript before you send it over to server side. CSS …

  9. javascript - Lodash title case (uppercase first letter of every word ...

    Jun 29, 2016 · Lodash title case (uppercase first letter of every word) Asked 9 years, 5 months ago Modified 3 years, 8 months ago Viewed 220k times

  10. Lowercase all letters in a string except the first letter and ...

    Run code snippet Expand Based on: How do I make the first letter of a string uppercase in JavaScript? and How to capitalize first letter of each word, like a 2-word city?