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
JOHN SMITH
Convert string in lowercase
john smith
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 simpleOutput
john smith
Tags:
JQuery