Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Captalize first letter javascript

function ucfirst(str,force){
          str=force ? str.toLowerCase() : str;
          return str.replace(/()([a-zA-Z])/,
                   function(firstLetter){
                      return   firstLetter.toUpperCase();
                   });
     }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Captalize #letter #javascript
ADD COMMENT
Topic
Name
1+1 =