[Solved] How to capitalized only first letter of sentence in input fields with javascript? [duplicate]


Call this function and set the text to input on each key press

function titleCase(string) { 
return string.charAt(0).toUpperCase() + string.slice(1); 
}

solved How to capitalized only first letter of sentence in input fields with javascript? [duplicate]