Capitalize first letter of string in javascript
        Posted  
        
            by Robert Wills
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Robert Wills
        
        
        
        Published on 2009-06-22T08:25:31Z
        Indexed on 
            2010/03/24
            19:23 UTC
        
        
        Read the original article
        Hit count: 324
        
I want to capitalize the first character of a string, and not change the case of any of the other letters. For example:
- this is a test -> This is a test
 - the Eiffel Tower -> The Eiffel Tower
 - /index.html -> /index.html
 
© Stack Overflow or respective owner