enltr xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/terms/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#"http://www.w3.org/1999/xhtml/vocab/////////////////Convert string to lowerCase with .smallCase() | BitsyCodehttps://www.bitsycode.com/methods/manipulation/smallcaseConvert string to lowerCase with .smallCase() | BitsyCode Convert string to lowerCase with .smallCase() | BitsyCode html not-front not-logged-in no-sidebars page-node page-node- page-node-68 node-type-page

Convert string to lowerCase with .smallCase()

container

.smallCase();


Description:Convert string to lowercase. If value is not of type string, the value will be cast as a "String" before converted to lowerCase value.


Example:

<!doctype html>
    <html lang="en">
    <head>
      <meta charset="utf-8">
      <title>smallCase demo</title>
      <script src="http://code.bitsycode.com/bitsycode-latest.min.js"></script>
    </head>
    <body>
      
      <div class="content-container">THIS TEXT WILL BE SET TO smallCase</div><br />
      <button onclick="convertLower()">Convert to LowerCase</button>
      
      <script type="text/javascript">
         
         function convertLower() {
            var content = bitsyCode(".content-container").text();
            var converted = bitsyCode.smallCase(content);
            bitsyCode(".content-container").text(converted);
         }
         
      </script>
     
    </body>
    </html>

Preview:

THIS TEXT WILL BE SET TO smallCase

Share

Developed and built with passion and commitment.
Maintained by the bitsycode team.