Results 1 to 2 of 2

Thread: capitalize does not work for a string

  1. #1

    Default capitalize does not work for a string

    var StringValTest = " Test string";
    var capitalizeString = Ext.String.capitalize(StringValTest);
    alert('capitalizeString',capitalizeString);

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    Sure it does, it will capitalize the first character

    Code:
    var string = 'test string';
    string = Ext.String.capitalize(string);
    
    console.log(string); //Test string
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •