SQL PHP HTML ASP JavaScript articles and free scripts to download
JavaScript Tutorials
Popular Tutorials
Drop down list
Timer function
JavaScript Tutorials
String
Array
Date & Time
Form Validation
Event Handling
Math Functions
JavaScript Forum
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.

 
 

Converting Uppercase letters to Lower case in JavaScript

We have seen how to convert lower case letter to uppercase letter. Now we will learn how to convert upper case letters to lower case letters by using toLowerCase() functions in JavaScript. Here is the basic syntax for toLowerCase method.

var a2 = str.toLowerCase();


Here str is our string variable. The new string ( with lower case letters ) is stored in new variable a2.

Here is the sample code





var str="This is my 1st new Tuorial 123";
var a2 = str.toLowerCase();
document.write(a2);


Converting Lower case letter to uppercase using toUpperCase() method

Further readings
Lower case text to Uppercase text
Uppercase letter to Lower case
Bold text letters using JavaScript
String Length
Character at a location using charat function
Indexof function
String Reverse function
search():Searching String inside another string
slice():Collecting part of a string using slice function
Domain and userid part of email address
Text box onBlur click event changing text case
 
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.

Scripts
PHP
JavaScript