Tuesday, March 20, 2012

CSS - Capitalizing textbox input as you type

If you want to capitalize the text you type into an ASP.NET textbox (i.e. Michael Jordan, not michael jordan), there's no need for fancy JavaScript or code-behind ways. 
All you need to do is to add the text-transform:capitalize; CSS property to the CSS of the textbox and it will capitalize your text as you type.


No comments:

Post a Comment