Feb
03
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.

Share and Enjoy:
  • del.icio.us
  • digg
  • Furl
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl
  • YahooMyWeb
Written by Tom in: Javascript |

No Comments

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes