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
only use this This work for first name in capital char
style="text-transform:capitalize;
Like
<asp:TextBox ID="txtName" style="text-transform:capitalize;" runat="server" placeholder="Your Name" required=""></asp:TextBox>
val = val.substr(0, 1).toUpperCase() + val.substr(1);
or:
val = val.charAt(0).toUpperCase() + val.substr(1);