JS Bin demo
This regex transform each lower case word to upper case. I have a full name input field. I do want the user to see that each word\'s first letter he/she
This will do for every textfield call function on keyup
where id is id of your textfield and value is value you type in textfield
function capitalizeFirstLetter(value,id)
{
if(value.length>0){
var str= value.replace(value.substr(0,1),value.substr(0,1).toUpperCase());
document.getElementById(id).value=str;
}
}