JavaScript: Convert String to Lowercase Letters
Info by Progger99 | 2012-03-29 at 13:57
This example converts a string consisting of uppercase and lowercase letters to a string that is written in lower letters completely:
var str = "AbC DEf gH"; str = str.toLowerCase(); alert(str); // Output is: "abc def gh"
With the function toLowerCase() you are able to convert all characters of a string to their lowercase equivalents, like it is shown in the example.
About the Author
The author has not added a profile short description yet.
Show Profile
Related Topics
PHP: Check Strings with Ctype-Functions for Character Classes
Article | 0 Comments
Delphi/Lazarus: Display current Date and Time
Tip | 0 Comments
MySQL: Line Breaks in MySQL
Tip | 0 Comments
Create URL for Website from Title of Page
Tutorial | 0 Comments
JavaScript: Remove last character from string
Tip | 5 Comments
Convert many CSV Files to XLSX or ODS Spreadsheets
Tutorial | 0 Comments
Important Note
Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.
Participate
Ask your own question or write your own article on askingbox.com. That’s how it’s done.
And if you want to go the other way, you can simply use the function toUpperCase() instead of toLowerCase(). This makes all characters in the string uppercase.
2020-02-04 at 23:01