Is it possible? Try it out:
Archives for February 2006
javascript lcase
The javascript equivalent to vbscript’s lcase() function is .toLowerCase(). Here’s an example:
var myVar;<br />
myVar = 'HELLO';
myVar = myVar.toLowerCase();
alert(myVar);
The output is, of course, “hello”.
As you could guess, the equivalent to vbscript’s ucase() function is .toUpperCase(). Pretty self explanatory. Here’s a link to other javascript string functions.