capitalize
Returns a copy of the string, with first characters of each word capitalized.
See also upperCase, lowerCase, replace, trim, concat.
Syntax
capitalize([delimiters])
Parameter |
Description |
---|---|
|
The optional delimiting characters for identifying words. Default is ‘ ‘. |
Examples
$('AVar').capitalize()
$('AVar').capitalize(':;,( .["')