Convert Text Cases using jQuery, without CSS

How to convert text value of an element, referred to as “selector” here, to lowercase, uppercase, title case and pascal case using jquery.