Initial Caps
A User Interface Improvement Script
Initial Caps - this to me is a user interface improvement script. Why should a user have to capitalize the first letter of each word in a name, or address, or city. This little routine will capitalize the first letter following a space or period. It could be enhanced to honor other characters as well.
A lot of JavaScript is floating freely around the Internet, and I typically don't re-invent the wheel when I don't have to. This script is an exception as most of what I found out there - 2 choices really - seemed like they took the scenic route to get the job done.
Here's my version - I have this setup in this example as an event handler for two (2) different events - the onClick event of the "Try It" button, and also the onChange event of the Text Input field. You can type whatever you want in the field and then leave the field with Tab or click outside it - and walla!