How to make the first letter of a string as uppercase, but don't change other letters in uppercase ?
- In the given strings to make the first string as capitalized: uppercase its first letter, and remaining strings to be lowercase.
- This problem to overcome by the combination of two functions. The first letter to be uppercases and starting from the second slices string to at the end string as lowercase.
You can use this solution:
Read AlsoAngularJS Uppercase
This approach is an object-oriented:
In early version that gets the first letter by treating the string as an array:
This doesn't work in IE 7 or below.
We want remove empty string from the given strings:
Read AlsoJava Strings toUpperCase() method
We need to capitalize the first letter and lowercase couldn't be change. Using this function some changes will be occur.