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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I have a text box as upperCase only 1

Status
Not open for further replies.

danmul

Programmer
Jan 16, 2003
89
0
0
IE
I want the a text box to display only upper Case, even if the user enters in text in Lower case. Is this possible??
 
Hi,
I know that there is a JS function called toUpperCase() which converts a string to the upper-case. I never used it, you can probably use it with the onChange event.

Good luck
</alexjeru>
 
Thanks,
I am using this already. I was just wondering if there was a value on text box that would force uppercase like the readonly attribute.
 
You can set this style attribute :
Code:
style=&quot;TEXT-TRANSFORM: uppercase&quot;
Water is not bad as long as it stays out human body ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top