Thursday, September 2, 2010

jQuery Code: Change text to Uppercase


Below jQuery code change text to UPPERCASE.
$(document).ready(function(){
   var strVal = 'jquery by example rocks!!'
   alert(strVal.toUpperCase());
});
See live Demo and Code
I have created a plugin called "Setcase" which can be used to convert text to uppercase, lowercase, title case and pascal case. It starts converting text to case as soon as user starts typing.
Feel free to contact me for any help related to jQuery. I will gladly help you.