Javascript – Convert upper and lower case

Convert String into upper and lower case in javascript

toUpperCase is used to convert into upper case of string
and
toLowerCase is used to convert into lower case of string


var str=document.formName.FieldName.value

 ////convert normal string to Upper case in javascript
var strUpper=str.toUpperCase();

 ////convert normal string to Lower case in javascript
var strLower=str.toLowerCase();
Bookmark  

 

Leave a Reply

Security Code:

 

  Random Post