Webcognoscere

To convert a string to lower case in JavaScript we use the following steps:

var sometext=”This is some text.”;
var casechanged=sometext.toLowerCase();

Now the variable casechanged contains “this is some text.”. For upper case in JavaScript:

var sometext=”This is some text.”;
var casechanged=sometext.toUpperCase();

Now the variable casechanged contains “THIS IS SOME TEXT.”.

Tags:

Global ASP.NET Hosting Leader - Click Here

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

Global ASP.NET Hosting Leader - Click Here