Skip to main content

How to convert all characters to upper case?

1 reply [Last post]
frank_langelage
Offline
Joined: 2006-07-12
Points: 0

Using a standard text input field

in my form.

How can I convert every character keyed in to upper case immediately?
If this is not possible after each character, how to switch the field content to uppercase when leaving the field?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joel Weight

quick google search gives the following:

Could do it onkeyup for the inputtext
http://www.liewcf.com/javascript-convert-characters-to-uppercase-when-ty...

or could modify this to be onblur instead of a button.
http://www.mediacollege.com/internet/javascript/text/case-uppercase.html

Joel

On Tue, Jun 15, 2010 at 4:26 PM, wrote:

> Using a standard text input field
> > size="20"/>
> in my form.
>
> How can I convert every character keyed in to upper case immediately?
> If this is not possible after each character, how to switch the field
> content to uppercase when leaving the field?
> [Message sent by forum member 'frank_langelage']
>
> http://forums.java.net/jive/thread.jspa?messageID=474393
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>
>
[att1.html]