I am using the following style attribute to set the user input to uppercase so that when the user starts typing in the text box for example railway, then it should
railway
I think the most robust solution that will insure that it is posted in uppercase is to use the oninput method inline like:
EDIT
Some people have been complaining that the cursor jumps to the end when editing the value, so this slightly expanded version should resolve that