Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Text in a Textbox to Upper Case using HTML

Status
Not open for further replies.

notrut

Programmer
Feb 6, 2002
87
CA
Hi,

Quick question for you. Is there an HTML tag that will convert the text typed in a textbox automatically to upper case as the person is typing??

I know I can convert the text to uppercase using ASP after a submit, but can you anly allow a textbox to have uppercase?

Any help would be greatly appreciated.
 
Figured it out:

<input type=text style="text-transform:uppercase;">
 
Be warned.
Using this method only effects the way the text looks in the textbox.
If you were to disable the style then you will find it is still actually lowercase text.

If you need to have real uppercase text, then you must transform it with a server side function... or perhaps JavaScript.

Foamcow Heavy Industries - Web design and ranting
Toccoa Games - Day of Defeat gaming community
Target Marketing Communications - Advertising, Direct Marketing and Public Relations
"I'm making time
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top