to convert strings in uppercase and lowercase using jquery

In this web 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().

Convert string in uppercase
var name="john smith";//Very simple  
var nameUpperCase=name.toUpperCase();   
Output
JOHN SMITH

Convert string in lowercase
var name="john smith";  
var nameLowerCase=name.toLowerCase(); //Very simple  
Output
john smith

Admin

A Software Engineer, Social Media Marketing Expert, writer,

Post a Comment

Previous Post Next Post