Page 1 of 1

CASE PROBLEM

Posted: Tue Oct 06, 2009 4:58 pm
by adsegzy
Hello Success-Oriented People,

I have a form. when my visitors are filling the form, i want some fields to start in tittlecase, i want in some fields to be uppercase without the visitor turning on the CAPLOCK key on the keyboard and some other fields to be lowercase. how do i do it?

Regards,
Olusegun

Re: CASE PROBLEM

Posted: Tue Oct 06, 2009 5:21 pm
by requinix
With JavaScript. A few methods, like intercepting user input or reformatting the string when focus leaves the box.

Be advised: many people don't like/get confused when they type something and see something else show up instead.

Re: CASE PROBLEM

Posted: Tue Oct 06, 2009 6:44 pm
by oliur
you could use two different css class for form input fields.

Code: Select all

 
<style type="text/css">
.upper{text-transform:uppercase; color:#FF3333;}
.lower{text-transform:lowercase;}
</style>
</head>
 
<body>
<form action="" method="get">
<input class="lower" name="input1" type="text" />
<input class="upper" name="input2" type="text" />
</form>
</body>