I\'m trying to proper case a string in javascript - so far I have this code: This doesn\'t seem to capitalize the first letter, and I\'m also stuck on how to lowercase all the l
First all become lowercase, and then open each word, and then open each letter, the first letter set capital, and then together
function titleCase(str) { var copy=str; copy=copy.toLowerCase(); copy=copy.split(' '); for(var i=0;i