Uppercase and lowercase strings using jquery

In this programming tutorial we will learn how to convert strings in uppercase and lowercase using jquery. It is not a difficult task in jquery. Jquery has two built-in functions for handling these two cases. Those two functions are .toUpperCase() and .toLowerCase(). Let's have a look over the example given below that demonstrates how to do so.
Convert string in uppercase
var name="Adeel Fakhar";//Very simple
var nameUpperCase=name.toUpperCase(); 

Output
ADEEL FAKHAR

Convert string in lowercase
var name="Adeel Fakhar";
var nameLowerCase=name.toLowerCase(); //Very simple

Output
adeel fakhar

So that's it. I hope you will find this tutorial very useful.

Stay tuned with nice-tutorials.blogspot.com for bundle of jquery tutorials.

I love your feedback.

0 comments: